I put mine in my pannier, or if I'm not taking a pannier I bungee cord it to the top of my rack.

For some racks/u-locks you can slip the u thru the margin of the rack and the barrell keeps it from falling though. That leaves the top of your rack clear for other things.