Question: how to train dog not to poop inside?
Answer: Immediately interrupt him by clapping and saying “Ah ah!” Get the dog outside as soon as possible (carry him whenever possible and put the leash on the dog as you head to the door).