This can be why running Docker commands typically needs sudo or root privileges. The answer to control Docker safely as a non-root user is to incorporate your consumer to the docker group.Now, in this container, it is possible to run Docker commands that should be executed on the host’s Docker daemon.This command reveals the namespaces linked to