It's as easy as wiping the container using a cloth soaked in vinegar or if the smell is particularly bad, add vinegar to bread and soak it like this:
This methods works on metal and plastic lunch boxes as well as ice chests.
Because vinegar is acidic (acetic acid) and readily dissolves food and mineral deposits. It is also antibacterial and antifungal and is therefore excellent for cleaning up after old smelly, rotting food. It is of course eminently edible as well so if there is any residue left in your food container, you can be sure it is doing you no harm.
Vinegar will also clean any surface as well as deodorize it. Remember to compost your bread and vinegar. There are all kinds of fantastic eco lunch boxes here on ekko.world, made of things like bamboo and metal.