第一次运行时,docker 不会这样做:
$ docker-compose -f docker-compose.local.yml up -d
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/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Doxygen%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied
我将运行这个命令
$ sudo setfacl --modify user:user1:rw /var/run/docker.sock
这将解决该问题。但重启后,问题又会出现。为什么?如何让改变永久化?