I think this would cause liability issues with food: you bring in a dirty container, eat the contents, get ill and sue the vendor. However I think this works with cleaning products, for example.
All liquids should be available from huge dispensers in the supermarket. You bring in your own bottle and fill it up with as much as you want, get a printed label, scan it and pay. I'd use a nice big 2 litre bottle for yoghurt because I love the stuff.