我正在使用以下回购Dockerfile构建nagios映像。 https://github.com/JasonRivers/Docker-Nagios
但是在成功构建之后,当我尝试运行该映像时,它会出现以下错误。
Website: https://www.nagios.org
Error: failed to access() /opt/nagios/bin/nagios: Permission denied
Error: Spawning workers will be impossible. Aborting.
checking permissions for nagios & nagiosgraph
nagios: Error: failed to access() /opt/nagios/bin/nagios: Permission denied
nagios: Error: Spawning workers will be impossible. Aborting.
以上文件在容器中具有完全权限。
root@efdc80ad785d:/opt/nagios/bin# ls -l
total 756
-rwxrwxrwx. 1 nagios nagios 729560 Aug 5 05:22 nagios
-rwxrwxr--. 1 nagios nagios 39648 Aug 5 05:22 nagiostats