It is best manners to ask the owner of any dumpster for permission to enter if you see something you want. This way, you avoid any trespassing issues. A simple way to do this is to find out who owns the dumpster and ask.