I recently discovered that wet erase markers written directly on the container work great for this! (And I don't have to get out any masking tape!) I've used them on the plastic lids of glass food storage containers, and also on my glass containers. When I'm doing storing that particular food, the marker just rinses off. (I guess I can't promise that it won't leave any residue on your containers, but I haven't experienced that at all.)
I hope that's helpful to someone!
