There is little you can do once your dog has pooped in your house, outside of cleaning the poop up imminently. From there, you need to begin proactively training your dog not to do this in the future. To do so, you should teach your dog a 'poop' command by whispering this command when they go to the toilet.