Centos7.6离线安装docker

一、Docker安装

1、安装环境:

系           统:CentOS Linux release 7.6.1810 (Core)

Docker版本:19.03.5

2、下载离线安装包

docker安装包下载:https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.5-3.el7.x86_64.rpm

依赖包下载:

containerd.io:https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.2-3.el7.x86_64.rpm

docker-ce-cli:https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-19.03.5-3.el7.x86_64.rpm

container-selinux:https://pkgs.org/download/container-selinux

3、安装

rpm -ivh docker-ce-cli-19.03.5-3.el7.x86_64.rpm

rpm -ivh container-selinux-2.107-3.el7.noarch.rpm

rpm -ivh containerd.io-1.2.2-3.el7.x86_64.rpm

rpm -ivh docker-ce-19.03.5-3.el7.x86_64.rpm

 4、启动

# 启动

systemctl start docker

# 查看状态

systemctl status docker

你可能感兴趣的:(docker,容器,运维)