There are many ways shelters go about putting dogs to sleep, from all sorts of medications to Nitrous oxide to Carbon monoxide (banned in some states) to decompression chambers. It is widely agreed that the kindest, safest, most reliable way to put down a dog is with a sodium pentobarbital injection.