There must be some way to clean out that onion smell. Maybe add a few tablespoons of white vinegar and seal it up, leave it on your counter for a few days and shake it now and then... ?
Probably any of the plastic containers could take up onion smell. On the other hand, drop plastic and no problem, drop glass and it could shatter.
I've tried vinegar, vinegar and salt, bleach, crumpled newspaper, baking soda. I just use those couple for raw onion, my only solution to the smell issue. I'm probably over sensitized to stale onion smells, it's one of those I cannot stand, especially if it's on my hands, so I may be smelling something that really isn't there to someone else.