docker拉取指定版本的centos和python镜像

CentOS镜像
#   docker pull  centos:centos6
#   docker pull  centos:centos7
默认会拉取centos6/centos7 最新版本的镜像
如果你想拉取指定版本的镜像怎么办?
看CentOS官方在Dockerhub上的tag:
https://hub.docker.com/_/centos
拉取centos7: docker pull centos:centos7
拉取指定版本python
https://hub.docker.com/_/python
拉取python2.7 docker pull python
:2.7
posted @ 2021-04-16 16:03  reblue520  阅读(1076)  评论(0编辑  收藏  举报