If you think it is serious enough, here is what I have done.
buy a simple electric fencer and wind a small amount of wire or metal fencing around the container if it is plastic or non conductive and make sure it does not touch the ground.
Plug the fencer into a 120 volt outlet and fasten its delivery wire to the wire on the garbage container. If the container is metal you have to arrange for the wire to be not touching the container or ground.
A plastic container is much easier to wire.
The fencer sends a high voltage non lethal pulse on a regular basis. Any animal including humans will not touch it more than once or twice. If you really want to jolt the animal, put a piece of bacon on the wire and tie it in place. They will try a few times to get it and then never again. To give a better jolt, water the ground around the container,
Out ouch of the ouch org
None of this will injure the animal or human. If done correctly .