Barrel of Oil

You have a barrel of oil, and you need to measure out just one gallon. How do you do this if you only have a three-gallon container and a five-gallon container?