Your Docker setup is probably sharing root access with your host machine, and that's far from ideal for a self-hosting server ...
A few weeks ago, I switched from Docker to Podman, as the latter provides some extra features for my containerization needs. That said, Docker is still a neat container runtime despite all its faults, ...