Centos7Docker在线安装
准备记录下Docker上安装nexus3的过程,发现以前欠下债还没还,于是先把docker在线安装记录下来
准备工作
yum install -y wget
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
Docker安装
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce docker-ce-cli containerd.io
mkdir -p /etc/dockertee /etc/docker/daemon.json <<-"EOF"
{
"registry-mirrors": ["https://nmjbvxfd.mirror.aliyuncs.com"]
}
EOF
启动docker
systemctl daemon-reload
systemctl restart docker
systemctl enable docker //开启自动启
测试
docker run hello-world
以上是 Centos7Docker在线安装 的全部内容, 来源链接: utcz.com/z/517668.html