前端之家收集整理的这篇文章主要介绍了
centos 7 docker基础安装,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg [docker-main-repo] name=Docker main Repository baseurl=http://mirrors.aliyun.com/docker-engine/yum/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=http://mirrors.aliyun.com/docker-engine/yum/gpg EOF
yum install docker-engine
systemctl enable docker.service
systemctl start docker
docker run
原文链接:https://www.f2er.com/centos/380118.html