there was a thread on this a couple years ago if anyone feels like searching, iirc I did the math on the internal volume of the jerry can and there was no sub on the market that would come close to working well with it. Need more air plus all the issues mentioned above with rattling. If it was a good idea to build sub boxes out of metal that's the way they would be built.
Mounting inside the vehicle and storing gas in it would make me worry about fumes.
Remember the volume off the top of your head? I've got a couple older 10" kicker solobarics sitting around and if memory serves they only needed .66 ft^3. I'd think line the thing with dynamat and you'd at least have a 1/2 decent enclosure.