linux(centos7)安装docker

时间:2022-05-17 10:59:11

1、检查内核版本,必须是3.10及以上 uname ‐r

2、安装docker yum install docker

3、输入y确认安装

4、启动docker

[root@localhost ~]# systemctl start docker

[root@localhost ~]# docker ‐v Docker version 1.12.6, build 3e8e77d/1.12.6

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、停止docker

systemctl stop docker

docker 镜像查看地址:https://hub.docker.com

linux(centos7)安装docker