My answer is a little less soft. Training is the only answer and neutering supports that. If your only solution is to cage the dog in an old car then just do what's best for the dog and surrender him to a local shelter.
Is your dog neutered? That's #1. Dog training classes are great and worth the investment. Cars get hot! That part of you question is scary, please don't keep your dog in a old car.
Thanks! Your answer is awaiting moderation.