We use large (1 gallon or larger) zip lock bags that are placed in the below the sink cupboard. The zip lock bag is disposed of in the campground garbage container before bed. The zip lock keeps any odder at bay and any liquid contained, It also keep ants and other things out.
I had thought about doing something you did but I don't like to have open garbage sitting feeding ants and other insects.
Even at home the garbage is in a closed container and removed at least once a day to the outside garbage can.
Byron & Anne enjoying the everyday Saturday thing.