I honestly don't know what one does if one runs out of gas down the road from a gas station and doesn't want to call AAA or similar. I assume that gas stations must keep a jerrycan or similar around that they'll let someone take with a deposit.
I definitely wouldn't want to be lugging more gallons by hand than would be necessary to get my car to the gas station.