$ docker login -u zhongmingmao Password: WARNING! Your password will be stored unencrypted in /home/zhongmingmao/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
1 2 3 4 5 6
$ docker tag bitnami/nginx zhongmingmao/nginx:0.0.1 $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE bitnami/nginx latest 2f8cd4fa21bb 4 hours ago 95.5MB zhongmingmao/nginx 0.0.1 2f8cd4fa21bb 4 hours ago 95.5MB
1 2 3 4 5
$ docker push zhongmingmao/nginx:0.0.1 The push refers to repository [docker.io/zhongmingmao/nginx] 5e229842bf7f: Mounted from bitnami/nginx 58861e9c7a9b: Mounted from bitnami/nginx 0.0.1: digest: sha256:a13a99b81152f5274c8fdcd621d47f441b230ea4dea45acd48f23877949230de size: 740
Offline
Harbor
1 2 3
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE zhongmingmao/nginx 0.0.1 2f8cd4fa21bb 5 hours ago 95.5MB
1
$ docker save zhongmingmao/nginx:0.0.1 -o zhongmingmao-nginx-0.0.1.tar