Learn how to authenticate with your DCR registry and push container images.
Use the credentials provided during registry creation to log in:
docker login dcr.nexqloud.io/your-registry-name
When prompted, enter:
Login Succeeded upon successful authentication.Before pushing, tag your local image with your registry's endpoint:
docker tag local-image:tag dcr.nexqloud.io/your-registry-name/image-name:tag
Example:
docker tag myapp:latest dcr.nexqloud.io/dcp-dcr-demo-01/myapp:latest
v1.0.0)latest for the most recent stable versiondev, staging, prodPush the tagged image to your registry:
docker push dcr.nexqloud.io/your-registry-name/image-name:tag
Example:
docker push dcr.nexqloud.io/dcp-dcr-demo-01/myapp:latest
You can push multiple tags of the same image:
# Tag with version
docker tag myapp:latest dcr.nexqloud.io/your-registry-name/myapp:v1.0.0
# Tag with environment
docker tag myapp:latest dcr.nexqloud.io/your-registry-name/myapp:production
# Push all tags
docker push dcr.nexqloud.io/your-registry-name/myapp:v1.0.0
docker push dcr.nexqloud.io/your-registry-name/myapp:production
docker push dcr.nexqloud.io/your-registry-name/myapp:latest
If you're using Podman instead of Docker, the commands are nearly identical:
# Login
podman login dcr.nexqloud.io/your-registry-name
# Tag
podman tag local-image:tag dcr.nexqloud.io/your-registry-name/image-name:tag
# Push
podman push dcr.nexqloud.io/your-registry-name/image-name:tag