We've all seen the movies: Rambo runs over one of the terminals at a gas station, freeing the flow of gasoline to the street, the gasoline finds its way under a military vehicle, and the vehicle violently explodes, presumably from the gas in the gas tank. Is this actually possible/likely?
I remember hearing somewhere that gasoline in a liquid form isn't flammable; it's really the vapors that are flammable. Besides, isn't something being flammable much different than being explosive?
As you note, the flammability limit requires a mix of fuel and oxygen (mostly oxygen) in order to have a fire, and that means that
there's only two ways in which this can happen, and neither really fit your scenario:
The container actually has to be almost empty so that it's filled with a mixture of a lot of air, and a very small amount of fuel, most of it in vapor form. Then you have ideal conditions for an actual explosion and all that's missing is the tiniest of sparks. This is what caused the crash of TWA flight 800, and can be prevented by special inerting systems or tank designs.
Or the container has to sit in the middle of a major fire (possibly started by a leak) for quite some time (think 10 minutes at least). Then the heat can cause the fuel to expand and increase the pressure so much that the container bursts. When that happens, the sudden release of pressure will allow a large amount of hot fuel to almost instantly vaporize, mix with the surrounding air and then ignite in a huge flash flame or fireball. Pretty much all the examples in the answer by DJClayworth shows this case quite spectacularly.
Simple leaks of fuel can cause a fire, but not an explosion, though of course the fire can eventually lead to scenarion no. 2.
In a closed and rigid/strong container an explosion will occur.
In a soft container (like the Hindenburg)(whether gas or liquid) it will burn at the edges.. where there is air/oxygen.
In a long tube, like an 'empty' pipeline (gas or vapor + air, not full of liquid or 100% gas), there will be a fire until the speed of the blaze exceeds 'sonic' speed. At that point the gas/air will be compressed for several feet in front of the fire and that compressed pocket will explode, rupturing the pipeline. Then the pressure drops and the fire resumes, traveling down the pipe... The result is a timed series of explosions in the pipeline at specific distances. The distance between explosions can be predicted from the size of the pipe and the flammability of the liquid vapor (or gas). The cure is to put screens across the pipe at those predicted explosion distances (or less) so the fire is cooled and stopped before the (next) explosion can occur.