You should verify that the daemon.json file individual ownership and group ownership is correctly set to root.
The daemon.json file contains sensitive parameters that could alter the behavior of the docker daemon. It should therefore be owned and group owned by root to ensure it can not be modified by less privileged users.
Verify that the
daemon.json file is owned and group-owned by root by running:
stat -c %U:%G /etc/docker/daemon.json | grep -v root:root
The command should return no results.
chown root:root /etc/docker/daemon.json
This sets the ownership and group ownership for the file to root.
This file may not be present on the system, and in that case, this recommendation is not applicable.
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.