Nothing is ever easy here! IIRC developer used to come in metal tins.
Modern mason jar metal lids are coated and have silicone seals.
Further once filled there will be a small air gap between liquid and lid.
And if stored in total darkness what difference does clear glass make?
The smallest Walmart peroxide is 1 pint, and now has a suspect flip-top cap.
Mason jars may not be ideal, but they are cheap and readily available.
Unless you can lay your hands on some brown glass "Boston rounds" with phenolic caps...
Chris