Your Docker setup is probably sharing root access with your host machine, and that's far from ideal for a self-hosting server ...
Cutting my homelab’s container count by 66% ...
Docker uses a persistent background service, dockerd, to manage container lifecycles. The CLI communicates with this daemon, which supervises container creation, networking, and resource allocation.