There are both supply shocks and demand shocks. Gas prices are definitely undergoing a supply shock right now, which contributes to the price increases (and which the Fed can't help.) But there are also broad-based demand increases.
In the case of gas, supply issues predominate, although it is worth noting that price of gas going up and number of miles staying the same indicates both supply and demand shocks at the same time.
The Fed has almost perfect control of aggregate demand. Inflation is more challenging because it bakes in expectations.