docker 启动检查

Run 'docker COMMAND --help' for more information on a command.
[wangshumin@CentOSNode6 ~]$ ps -ef  | grep  docker
wangshu+  1728  1678  0 18:32 pts/0    00:00:00 grep --color=auto docker
[wangshumin@CentOSNode6 ~]$ sudo  service docker start
[sudo] wangshumin 的密码:
Redirecting to /bin/systemctl start docker.service
[wangshumin@CentOSNode6 ~]$ ps -ef  | grep  docker
root      1797     1  2 18:32 ?        00:00:00 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json --selinux-enabled --log-driver=journald --signature-verification=false --storage-driver overlay2
root      1801  1797  0 18:32 ?        00:00:00 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-shim --runtime docker-runc --runtime-args --systemd-cgroup=true
wangshu+  1894  1678  0 18:32 pts/0    00:00:00 grep --color=auto docker
[wangshumin@CentOSNode6 ~]$ ps -ef  | grep  docker
root      1797     1  1 18:32 ?        00:00:00 /usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json --selinux-enabled --log-driver=journald --signature-verification=false --storage-driver overlay2
root      1801  1797  0 18:32 ?        00:00:00 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock --metrics-interval=0 --start-timeout 2m --state-dir /var/run/docker/libcontainerd/containerd --shim docker-containerd-shim --runtime docker-runc --runtime-args --systemd-cgroup=true
wangshu+  1904  1678  0 18:32 pts/0    00:00:00 grep --color=auto docker
[wangshumin@CentOSNode6 ~]$ sudo  status   docker
sudo: status:找不到命令
[wangshumin@CentOSNode6 ~]$ sudo  stauts   docker
sudo: stauts:找不到命令
[wangshumin@CentOSNode6 ~]$ docker version
Client:
 Version:         1.13.1
 API version:     1.26
 Package version: 
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/version: dial unix /var/run/docker.sock: connect: permission denied
[wangshumin@CentOSNode6 ~]$ sudo docker version
Client:
 Version:         1.13.1
 API version:     1.26
 Package version: docker-1.13.1-63.git94f4240.el7.centos.x86_64
 Go version:      go1.9.4
 Git commit:      94f4240/1.13.1
 Built:           Fri May 18 15:44:33 2018
 OS/Arch:         linux/amd64


Server:
 Version:         1.13.1
 API version:     1.26 (minimum version 1.12)
 Package version: docker-1.13.1-63.git94f4240.el7.centos.x86_64
 Go version:      go1.9.4
 Git commit:      94f4240/1.13.1
 Built:           Fri May 18 15:44:33 2018
 OS/Arch:         linux/amd64
 Experimental:    false
[wangshumin@CentOSNode6 ~]$ 

猜你喜欢

转载自blog.csdn.net/wangshuminjava/article/details/81055630