Docker安装
安装步骤
- yum install yum-utils
- yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo (配置阿里云镜像)
- yum makecache fast
- yum install docker-ce docker-ce-cli containerd.io (安装)
启动
systemctl start docker
测试
docker version
启动 hello-world
docker run hello-world
查看镜像列表
docker image ls
可以使用阿里云镜像加速