利用下面的脚本进行配置
[root@hadoop100 ~]# docker login --username=13thm registry.cn-hangzhou.aliyuncs.com
Password:
[root@hadoop100 ~]# docker tag ba78e6d6845c registry-vpc.cn-hangzhou.aliyuncs.com/13thm/test:1.0
[root@hadoop100 ~]# docker push registry.cn-hangzhou.aliyuncs.com/13thm/test:1.0
[root@hadoop100 ~]# docker pull registry.cn-hangzhou.aliyuncs.com/13thm/test:1.0
1.0: Pulling from 13thm/test
7b1a6ab2e44d: Already exists
9f5f791023b9: Pull complete
Digest: sha256:7029500332092c2bb0f6b5d7da66b89af15ef12377f157778fa222cd1aa7f61a
Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/13thm/test:1.0
registry.cn-hangzhou.aliyuncs.com/13thm/test:1.0