In the former Soviet Union, people of course also became thirsty in common places. In the United States, it was solved with coin-based vending machines where the contents were served in disposable metal cans, while the copies of the Soviet concept became more or less involuntarily very environmentally friendly.
The Soviet variant of the American soda vending machine did not sell Coca-Cola. Instead, carbonated water or carbonated water with a few drops of sweetness was in, but the principle was the same. Insert 1 kopeck for water or 3 for a glass of soda substitute,mainly pear or orange. These machines could be found everywhere, no matter what you strolled in the park or any other public space.
Everything was served in a municipal glass that had been drizzled by thousands of people. It was cleaned easily by turning the glass upside down in the vending machine before filling. When you were done, you put the glass back in the vending machine.
These machines were common throughout the Soviet Union, and some actually survived many years after the fall of communism in various remote Russian cities. Just like many other products that were manufactured in a planning economy, they might not be the best, but sustainability was nothing wrong with.