我爲Hypriot的RPi安裝了Docker。Docker命令無法使用Hypriot Docker連接docker守護進程
當我第一次運行systemctl -l status docker
我得到這樣的響應:
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled)
Active: inactive (dead) since Mon 2016-06-13 06:32:50 UTC; 18min ago
Docs: https://docs.docker.com
Process: 1327 ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_OPTS (code=exited, status=0/SUCCESS)
Main PID: 1327 (code=exited, status=0/SUCCESS)
sudo service docker start
後,再次運行systemctl -l status docker
,我得到這樣的迴應:
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled)
Active: active (running) since Mon 2016-06-13 06:52:55 UTC; 6s ago
Docs: https://docs.docker.com
Main PID: 1434 (docker)
CGroup: /system.slice/docker.service
└─1434 /usr/bin/docker daemon -H fd:// --storage-driver=overlay -D
「Horray這是工作,我運行我的RPi上的Docker可以讓圖像!!!「
docker pull resin/rpi-raspbian
,但:
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
我在做什麼錯?
Okey,所以這可能解決了我的問題(請參閱下面的鏈接)。不知道有關hypriot - 泊塢窗版本,雖然,但我會看它:)