docker centos7安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38165374/article/details/89466941
Centos 安装
1. sudo yum update  确保 yum 包更新到最新。
2. curl -fsSL https://get.docker.com -o get-docker.sh 执行 Docker 安装脚本。
3. sudo sh get-docker.sh
4. sudo systemctl start docker 启动 Docker 进程。
5. sudo docker run hello-world  测试
6. 修改镜像地址 网易的镜像地址"http://hub-mirror.c.163.com":新版的 Docker 使用 /etc/docker/daemon.json(Linux)没有就创建
{
  "registry-mirrors": ["http://hub-mirror.c.163.com"]
}

猜你喜欢

转载自blog.csdn.net/qq_38165374/article/details/89466941