This section describes how to upload private container images through intranet.
Before you upload a private container image, tag the image. A tag contains the address of the private container registry to which the image will be uploaded.
For details about connecting the Docker client to the private container registry, see Connecting to the Private Container Registry.
docker tag images_id 100.125.1.72:6443/domain_name/image_name:version
In this command:
The value of domain_name parameter must be a string of lowercase letters without space. For example, if the value of Domain Name is "CCE test", then the value of domain_name must be converted to "ccetest".
Your domain_name can be something like: OTC00000000001000010622 and can be found under the MyCredentials page in your OTC.
docker tag c9fd36df346a 100.125.1.72:6443/otc00000000001000010622/frontend:latest
docker push 100.125.1.72:6443/domain_name/image_name:version
In this command:
The domain_name must be a string of lowercase letters without space. For example, if the Domain Name is "CCE test", then the domain_name must be converted to "ccetest".
docker push 100.125.1.72:6443/otc00000000001000010622/frontend:latest
If information similar to the following is displayed, the container images are uploaded successfully:
The push refers to a repository [100.125.1.72:6443/otc00000000001000010622/redisslave] ...... latest: digest: sha256:e59050aa3ed5c08fe9907a3ca0198cc85892c77ae17d90f4c54775691432827a size: 12019
notary -s https://your-notary-server-address:4443 -d ~/.docker/trust key rotate your-dockerhub:443/your-namespace/your-repo root.
tar czvf docker_trust.tar.gz ~/.docker/trust
For more information on key management, see https://docs.docker.com/engine/security/trust/trust_key_mng/.
A list of uploaded container images is displayed on the Container Registry page.