I have bail top glass jars - the kind with glass lids and a metal fastener. I got them at Cost Plus (World Market), in a variety of sizes. Everything from a gallon to a pint. Like these ones. I also have some of these. I dedicated one shelf in my cabinet to them (2 layers deep), and since they stack nicely, I stack them as possible. When I ran out of those jars, I started using standard canning jars, in various sizes, with one piece lids.
I live in an old Victorian with a tiny kitchen, so I had to get creative with pantry space. I found a pie cabinet (sometimes called a jelly cupboard) at a local bare woods place and turned that into my pantry. The nice thing about a pie cabinet is it's only about 12 inches deep, so it can fit in spaces that otherwise might go unused. I got a tall one - about 6 ft tall, most of the ones I'm finding with google are only waist high. The top half of my cabinet is used for my regular grocery store purchases (cans, bottles, jars, boxes, etc.), and the bottom half of the cabinet is used for bulk storage - again with the mason jars, or even in the original packaging if it was bought in a large pkg (instead of from a bin).