The rise in oil prices turned into a stampede on Friday with futures jumping a staggering $11 a barrel to set a record above $138 a barrel. The unprecedented surge came as the dollar fell sharply against the euro and a senior Israeli politician once again raised the possibility of an attack against Iran.

Friday’s jump capped a second day of strong gains on energy markets, and fed suspicions that commodities might be caught in an investment bubble.

Oil prices have doubled in the last 12 months, and are up 42 percent since the beginning of the year. Oil futures surged $10.75, or 8 percent, to $138.54 a barrel on the New York Mercantile Exchange, their biggest jump since contracts began trading in 1983. The record rise brought a two-day jump of more than $16 a barrel, after Thursday’s 5.5 percent gain.

“This market is going to shoot itself in the foot,” said Adam Robinson, an energy analyst at Lehman Brothers. “It is searching for a price that will build a safety cushion in the system  either as inventories or as spare capacity. This takes time. But the market has gotten extremely impatient and is not willing to wait.”