2016-06-13 180 views
0

我爲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 - 泊塢窗版本,雖然,但我會看它:)

https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-three-steps

回答

0

我有這個問題,我當我忘了我的運行與泊塢窗命令sudon。

錯誤發生是因爲您沒有訪問套接字的權限Docker正在偵聽,除非您是root用戶或位於「docker」組中。

相關問題