Don't lean against automatic door
Don't hold the door open
I usually see this kind of prohibition on the train. What makes me confused is why the first sentence doesn't use the and the second sentence does? I mean both of the sentences refer to the same door in the train.