You should verify that the
/etc/docker directory ownership and group ownership is correctly set to root.
/etc/docker directory contains certificates and keys in addition to various other sensitive files. It should therefore be individual owned and group owned by root in order to ensure that it can not be modified by less privileged users.
You should execute the command below to verify that the directory is owned and group owned by root:
stat -c %U:%G /etc/docker | grep -v root:root
This command does not return any data.
To resolve this issue, run the following command:
chown root:root /etc/docker
This sets the ownership and group ownership for the directory to root.
By default, the ownership and group ownership for this directory is correctly set to root.
5.1 Minimize And Sparingly Use Administrative Privileges - Minimize administrative privileges and only use administrative accounts when they are required. Implement focused auditing on the use of administrative privileged functions and monitor for anomalous behavior.`