Hi,
what is the reason do use Docker for PiHole? We offer a ready to use installation via our software catalogue.
To bypass your issue, you would need to change docker service definition using dietpi-services, There service would need to be set to:
Include/Exclude : [excluded]
This should avoid to stop docker. You could check if by running dietpi-services stop