The city I live in allows two 5-gallon gas cans max. You need to check your local codes, and remember, if the worst case happens and your insurance finds you had more than that, they may refuse to honor your claim. That could be an expensive mistake.
To my mind, using an old detergent bottle is just asking for trouble. Just MHO.