docker install & start & stop

1. Check the kernel version

uname -r

3.10.0-327.el7.x86_64
2. Install docker

Internet connection required

yum install docker

3. Enter y to confirm the installation

4. Start docker

[root@localhost ~]# systemctl start docker
[root@localhost ~]# docker -v
Docker version 1.13.1, build 774336d/1.13.1
5、开机启动docker

root@localhost ~]# systemctl enable docker

Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

6. Stop docker

[root@localhost ~]# systemctl stop docker

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324959229&siteId=291194637