In photo below, my bear canister is inside a red stuff sack up front, and then attached with shock cords to the rack.

This was on a trip coming down the Alaska Highway. I was still fortunate not to see many bears on that part of the trip, but the canister was still useful.