When machine washing, do so at the highest temperature possible (follow manufacturers guidelines).
Then tumble dry (if recommended for your dog bed) or hang dry.
In between washes a vacuum of your dogs' bed is recommended to collect any loose hair/dirt.