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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章