Hmmm, not sure... Perhaps plastic jars would be better as tiny holes could be punctured in them for air but left small enough so as not to let in grubs.
I use plastic Pick & Mix sweets container for growing herbs.
Had to drill a few holes for air, but it works perfectly. Had had in the kitchen for years holding fruit & veg, but now its just herbs.....people always love it as it a real pick & mix container.
It was in a skip in town one night, brought it down and gave it a new life....