If you decide on this form of storage be careful on the way the doors latch. In an earthquake those columns of cans will be falling over. Even if the doors hold, be careful when you open it after a good shake. I'd look into building shelving between the 2x4 studs. Put a lip on the lower edge of each shelf to keep the cans in place.
_________________________
Better is the Enemy of Good Enough.
Okay, what’s your point??