2.1 Run the Docker daemon as a non-root user, if possible

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Rootless mode executes the Docker daemon and containers inside a user namespace, with both the daemon and the container are running without root privileges.

Rationale:

Rootless mode allows running the Docker daemon and containers as a non-root user to mitigate potential vulnerabilities in the daemon and the container runtime.

Impact:

There are multiple prerequisites depending on which distribution that is in use, and also known limitations regarding networking and resource limitation.

Running in rootless mode also changes the location of any configuration files in use, including all containers using the daemon.

Solution

Follow the current Docker documentation on how to install the Docker daemon as a non-root user.

Default Value:

The Docker daemon is running as the root user by default.

See Also

https://workbench.cisecurity.org/files/4244