天天看點

docker常見問題FAQ

運作docker-compose報錯 

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

解決辦法: 将目前使用者加到docker組

sudo usermod -aG docker [username]
           

運作docker-compose報錯 

Creating network "pacs_default" with the default driver

ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule:  (iptables failed: iptables --wait -t nat -I DOCKER -i br-6a1a4e363b96 -j RETURN: iptables: N                                              o chain/target/match by that name.

 (exit status 1))

解決辦法:重新開機docker

sudo service docker restart 
或
systemctl restart docker