在CentOS7下如何安装Docker

2023-04-09 11:17:00 docker centos7 安装

1.下载Docker安装包

# wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm

2.安装Docker

# yum -y install docker-ce

3.启动Docker

# systemctl start docker

4.使Docker开机自启

# systemctl enable docker

5.查看Docker版本

# docker version

相关文章