P.W.
There are glass containers now with plastic tops. I wash the tops by hand and put the glass in the dishwasher (any rack). Plastic can leach into food and food doesn't discolor glass. It's a win win.
Target, Marshalls, container store all carry these.