[root@localhost ~]# docker login --username=whbblog registry.cn-hangzhou.aliyuncs.com Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
(2)制作镜像 tag
1 2 3 4 5 6 7 8 9 10 11 12
查看镜像 [root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE myubuntu v1 a7a511fae0fb 4 hours ago 178MB # 镜像 Tag [root@localhost ~]# docker tag a7a511fae0fb registry.cn-hangzhou.aliyuncs.com/whb_ns/myubuntu:latest # 查看镜像 [root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE registry.cn-hangzhou.aliyuncs.com/whb_ns/myubuntu latest a7a511fae0fb 4 hours ago 178MB
docker tag nginx:latest 192.168.6.80:5000/mynginx:1.2 # 查看镜像 [root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE 192.168.6.80:5000/mynginx 1.2 605c77e624dd 7 months ago 141MB