赞
踩
sudo yum install -y yum-utils
#通常用阿里镜像,不用官网的 用阿里的下载docker快
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
docker --version
docker run hello-world
#查看版本 docker --version docker -v #测试一下是否能用 docker run hello-world #停止Docker sudo systemctl stop docker #重启Docker sudo systemctl restart docker #设置开机启动 sudo systemctl enable docker #查看docker状态 sudo systemctl status docker #查看docker内容器的运行状态 sudo docker stats #查看docker概要信息 sudo docker info #查看docker帮助文档 sudo docker --help #查看镜像 docker images
镜像仓库标有offical image的是官方的
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。