步骤:
## 1、登陆“阿里云开发者平台”,创建命名空间和镜像仓库
## 2、将镜像推送到阿里云
```
# 登陆阿里云的docker仓库
docker login username=yuanke8942@163.com registry.cnhangzhou.aliyuncs.com
# 创建指定镜像的tag,归入某个仓库
docker tag b25b1dad795c registry.cnhangzhou.aliyuncs.com/itany/centos:v1.0
# 将镜像推送到仓库中
docker push registry.cnhangzhou.aliyuncs.com/itany/centos:v1.0
```
## 3、拉取镜像
```
docker pull registry.cnhangzhou.aliyuncs.com/itany/centos:v1.0
```