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
posted on 2020-04-26 11:43  omage  阅读(77)  评论(0编辑  收藏  举报