I struggled with keeping my dogs out of the trash with two former dogs. (Penny can’t reach – she just gets into things I leave out.)
The only thing I found that worked was a trash can that fit into a top-opening cupboard that tipped out towards you.
This looks like it would be an easy solution, as well.
Until next time,
Good day, and good dog!