目录
3.1要安装特定版本的 Docker 引擎,请在存储库中列出可用版本,然后选择并安装:
5.通过运行映像来验证 Docker 引擎是否已正确安装。hello-world
6.1.4 docker run -it ubuntu bash
6.2.1下载nginx的镜像,alpine的镜像,httpd的镜像并且给httpd镜像重新打标签为test/httpd:v1
- sudo yum remove docker \
- docker-client \
- docker-client-latest \
- docker-common \
- docker-latest \
- docker-latest-logrotate \
- docker-logrotate \
- docker-engine
- $ sudo yum install -y yum-utils
-
- $ sudo yum-config-manager \
- --add-repo \
- https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
- yum list docker-ce --showduplicates | sort -r
-
- docker-ce.x86_64 3:18.09.1-3.el7 docker-ce-stable
- docker-ce.x86_64 3:18.09.0-3.el7 docker-ce-stable
- docker-ce.x86_64 18.06.1.ce-3.el7 docker-ce-stable
sudo systemctl start docker
hello-worldsudo docker run hello-world




下载nginx的镜像

下载 alpine的镜像

httpd的镜像并且给httpd镜像重新打标签为test/httpd:v1


