I was a submariner in the RCN. We didn't have drug problems that I knew of(not counting booze anyway
), but if we returned home from a port which had a prominent drug scene, they'd have customs agents search the boat. I recall them trying to bring a dog aboard once. But, it refused to come down the hatch.