This is a test of commonsense. Complete the next sentence:

How to teach your dog not to get into garbage cans
Prevent your dog's access to the garbage can.
There are many ways that you can keep your dog from getting to the garbage can. For example, you can keep the kitchen garbage can in a closed cupboard.
However, if your dog has figured out a way to open cupboards, you may need to put childproof latches on the handles. In other rooms of the house, you could try putting small wastebaskets at a height where your dog could not reach them, such as the top of a dresser.