I am using docker 20.10.3 on our servers, the root directory is set to /data/docker and corresponding entry for '/data' is added to /etc/fstab on our CentOS 7.9 server. When Nexpose scan is executed it reports Partition Mounting Weakness (unix-partition-mounting-weakness) for all the mount points that docker is creating at runtime. As a fix it's suggesting to enable 'nodev' option for all those mount point.
I went through the documentation but was unable to find a way to enable nodev for overlay2 storage driver but couldn't figure out. Already tried to update service unit file with --storage-opt overlay.mountopt=nodev and daemon.json file but seems like these options are not valid.
Can someone please help?