which is great and actually works if you're in a rich area. What happens if you're not, and the gas station is out, or it's one of the ones without an attached little convenience store? If you've run out of gas and need a gas can, going to the next station over may be miles to walk!
If the alternative is putting gas in a bucket, which a) will be evaporating into your face while you walk back; b) will be dissolving the bucket while you walk back; c) you won't be able to use the get the gas into the tank anyway, even if it hasn't completely dissolved the bucket, then yes you walk. That's what happens when you run out of gas and you don't have a container in your car. You walk.
it has been my experience, even in the poorer parts of inner cities, most gas stations (the ones with convenience stores attached) sell gas cans for ~$5.
AAA will deliver you 5 gallons of gas, for members, though it counts towards a call for service (and you have to pay for gas).
I keep an empty gas can in my car trunk after learning the hard way.
I wasn't thinking of poor inner cities, I was thinking of even poorer rural areas where, even today, some of the gas station pumps are still analog.