无法连接到Docker守护程序。 Debian 8 Jessie

时间:2016-12-06 14:56:57

标签: docker debian

我无法像简单的用户那样构建任何容器。 我认为用尽所有kwnos给我带来了解决这个问题的可能性。我已经尝试过使用命令

将自己添加到组用户

groupadd docker

usermod -aG docker (user)

之后我使用命令

重新启动docker

systemctl restart docker

如果我切换到我的用户,我仍然无法构建任何容器,因为我收到错误

Cannot connect to the Docker daemon. Is the docker daemon running on this host?

命令后 docker status我得到以下日志

docker status
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled)
   Active: active (running) since wto 2016-12-06 15:41:31 CET; 1min 35s ago
     Docs: https://docs.docker.com
 Main PID: 26253 (dockerd)
   CGroup: /system.slice/docker.service
           ├─26253 /usr/bin/dockerd -H fd://
           └─26259 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim docker-containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir /var/...

gru 06 15:41:30 myHost dockerd[26253]: time="2016-12-06T15:41:30.435228099+01:00" level=warning msg="Your kernel does not support cgroup cfs period"
gru 06 15:41:30 myHost dockerd[26253]: time="2016-12-06T15:41:30.435251931+01:00" level=warning msg="Your kernel does not support cgroup cfs quotas"
gru 06 15:41:30 myHost dockerd[26253]: time="2016-12-06T15:41:30.435393945+01:00" level=warning msg="mountpoint for pids not found"
gru 06 15:41:30 myHost dockerd[26253]: time="2016-12-06T15:41:30.435753874+01:00" level=info msg="Loading containers: start."
gru 06 15:41:30 myHost dockerd[26253]: .....time="2016-12-06T15:41:30.497465970+01:00" level=info msg="Firewalld running: false"
gru 06 15:41:30 myHost dockerd[26253]: time="2016-12-06T15:41:30.990080575+01:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemo...d IP address"
gru 06 15:41:31 myHost dockerd[26253]: time="2016-12-06T15:41:31.370184647+01:00" level=info msg="Loading containers: done."
gru 06 15:41:31 myHost dockerd[26253]: time="2016-12-06T15:41:31.370332497+01:00" level=info msg="Daemon has completed initialization"
gru 06 15:41:31 myHost dockerd[26253]: time="2016-12-06T15:41:31.370401452+01:00" level=info msg="Docker daemon" commit=6b644ec graphdriver=aufs version=1.12.3
gru 06 15:41:31 myHost dockerd[26253]: time="2016-12-06T15:41:31.383585031+01:00" level=info msg="API listen on /var/run/docker.sock"

可能高于警告很重要,这是解决我问题的一个提示?

0 个答案:

没有答案