我配置了docker daemon socket。我可以通过" service docker start" 启动docker引擎。如果我尝试检查状态,它会将内容显示为 **
> **" docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor
> preset: disabled) Active: active (running) since Thu 2016-08-25
> 17:55:35 IST; 49s ago
> Docs: https://docs.docker.com Main PID: 13942 (dockerd) Memory: 22.7M CGroup: /system.slice/docker.service
> ├─13942 /usr/bin/dockerd
> ├─13948 docker-containerd -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim
> docker-containerd-shim --metrics-interval=0 --start-timeout 2m
> --state-dir /var/run/docker/libcontainerd/containerd --runtime docker-runc
> └─14069 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 5000 -container-ip 172.17.0.2 -container-port 5000 Aug 25 17:55:35 www.procifynow.com dockerd[13942]:
> time="2016-08-25T17:55:35.316805330+05:30" level=info msg="Daemon has
> completed initialization" Aug 25 17:55:35 www.procifynow.com
> dockerd[13942]: time="2016-08-25T17:55:35.316818523+05:30" level=info
> msg="Docker daemon" commit=23cf638 graphdriver=devicemapper
> version=1.12.1 Aug 25 17:55:35 www.procifynow.com dockerd[13942]:
> time="2016-08-25T17:55:35.321199525+05:30" level=info msg="API listen
> on /var/run/docker.sock" Aug 25 17:55:35 www.procifynow.com
> systemd[1]: Started Docker Application Container Engine. "**
**
但如果我尝试点击其他命令,例如 docker ps或info 它显示docker守护程序未运行。
答案 0 :(得分:1)
您可以尝试使用sudo
运行这些命令。
或者,如果您不想这样做,请将您的用户添加到泊坞群组,如下所示:
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart
至少为我解决了什么。