问候,
一周以来,我一直在尝试设置FCOS (Fedora CoreOS) 并运行Docker Swarm和SELinux(这是我第一次使用 SELinux)
容器运行得很好,但是当我尝试使用时,/var/run/docker.socket我总是会遇到permission denied
portainer_agent.0.k9c6uqifwohk@localhost | 2020/03/14 13:24:11 [ERROR] [main,docker] [message: Unable to retrieve information from Docker] [error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: dial unix /var/run/docker.sock: connect: permission denied]
Run Code Online (Sandbox Code Playgroud)
我已经尝试禁用 SELinux ( setenforce 0) 以确保问题来自 SELinux,
docker.socket
srw-rw----. 1 root docker system_u:object_r:container_var_run_t:s0 0 Mar 14 13:14 /var/run/docker.sock
Run Code Online (Sandbox Code Playgroud)
这是我用于测试的 docker-compose.yaml
portainer_agent.0.k9c6uqifwohk@localhost | 2020/03/14 13:24:11 …Run Code Online (Sandbox Code Playgroud)