0
設置完新鮮的Ubuntu Core 16 Raspberry Pi機器後。 使用來自Ubuntu Core的圖像web page。Raspberry Pi 3上的Ubuntu Core 16無法連接到Docker守護進程
並在其上安裝泊塢窗帶止:
snap install docker
我不能夠使用泊塢窗,我得到一個錯誤:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
泊塢窗服務狀態是無效的(死):
sudo systemctl status snap.docker.dockerd.service
snap.docker.dockerd.service - Service for snap application docker.dockerd
Loaded: loaded (/etc/systemd/system/snap.docker.dockerd.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Wed 2017-05-03 10:30:55 UTC; 30min ago
Process: 1975 ExecStart=/usr/bin/snap run docker.dockerd (code=exited, status=126)
Main PID: 1975 (code=exited, status=126)
May 03 10:30:54 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Unit entered failed state.
May 03 10:30:54 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Failed with result 'exit-code'.
May 03 10:30:55 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Service hold-off time over, scheduling restart.
May 03 10:30:55 localhost.localdomain systemd[1]: Stopped Service for snap application docker.dockerd.
May 03 10:30:55 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Start request repeated too quickly.
May 03 10:30:55 localhost.localdomain systemd[1]: Failed to start Service for snap application docker.dockerd.
重新啓動碼頭服務:
sudo systemctl stop snap.docker.dockerd.service
sudo systemctl start snap.docker.dockerd.service
沒有幫助。
泊塢版本輸出:
Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: -snap-a2d8d8c
Built: Fri Apr 21 08:56:55 2017
OS/Arch: linux/arm
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
的搬運工捕捉連接:
snap interfaces |grep docker
:docker-support docker:privileged,docker:support
:firewall-control docker
:network docker
:network-bind docker
docker:docker-daemon docker:docker-cli
- docker:account-control
- docker:home
有沒有正常啓動碼頭工人守護進程所需的任何額外的步驟?
UPD:碼頭工人服務日誌
sudo journalctl -u snap.docker.dockerd.service -f
-- Logs begin at Wed 2017-05-03 15:56:02 UTC. --
May 03 16:12:58 localhost.localdomain systemd[1]: Stopped Service for snap application docker.dockerd.
May 03 16:12:58 localhost.localdomain systemd[1]: Started Service for snap application docker.dockerd.
May 03 16:12:59 localhost.localdomain snap[1697]: /snap/docker/91/bin/dockerd-wrapper: 23: /snap/docker/91/bin/dockerd-wrapper: useradd: Permission denied
May 03 16:12:59 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Main process exited, code=exited, status=126/n/a
May 03 16:12:59 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Unit entered failed state.
May 03 16:12:59 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Failed with result 'exit-code'.
May 03 16:12:59 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Service hold-off time over, scheduling restart.
May 03 16:12:59 localhost.localdomain systemd[1]: Stopped Service for snap application docker.dockerd.
May 03 16:12:59 localhost.localdomain systemd[1]: snap.docker.dockerd.service: Start request repeated too quickly.
May 03 16:12:59 localhost.localdomain systemd[1]: Failed to start Service for snap application docker.dockerd.
有一個在這個郵件列表中發佈一些有用的信息,這可能會有幫助。特別是關於首先刪除debs的那個。你看到了嗎? https://lists.ubuntu.com/archives/snapcraft/2016-October/001382.html – popey
這些消息表明docker守護進程提前退出。下一步就是找出其日誌所說的內容。 –