docker笔记

1.卸载旧版本

yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine

2.设置仓库

yum install -y yum-utils

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3.更新yum软件包索引

yum makecache fast

4.安装docker

yum install docker-ce docker-ce-cli containerd.io

5.启动docker

systemctl start docker

6.查看docker版本

docker version

7.Helloworld

docker run hello-world

狂神b站视频:https://www.bilibili.com/video/BV1og4y1q7M4

你可能感兴趣的:(docker)