When to use this
Cross-org sharing
Share images between teams in different organizations
Environment promotion
Promote images from dev to staging to production orgs
Image migration
Migrate images when reorganizing or splitting organizations
Rename images
Copy images with new names or tags
Prerequisites
CLI installed
CLI installed
Install the Control Plane CLI. See Installation.
Docker installed
Docker installed
Install Docker. The CLI uses Docker to pull, tag, and push images.
Access to both organizations
Access to both organizations
You need:
- Pull permission on images in the source org
- Push permission on images in the destination org
Profiles configured (for cross-org)
Profiles configured (for cross-org)
If copying between orgs that use different credentials, create a profile for each org:See Profiles for details.
Basic usage
Copy an image to another organization:- Authenticates Docker to both organization registries
- Pulls the image from your current org
- Tags it for the destination org
- Pushes it to the destination org
Copy with a different name
Use--to-name to rename the image during copy:
my-app:v1 to destination-org as renamed-app:v1.
Copy between orgs with different credentials
When organizations use different authentication contexts, specify a profile for the destination org:Clean up local images
By default, the CLI leaves the pulled and retagged images on your local machine. Use--cleanup to remove them after a successful copy:
Command reference
| Option | Description |
|---|---|
<ref> | Source image reference (e.g., my-app:v1) |
--to-org | Target organization to copy the image to |
--to-name | New name and tag for the image (optional) |
--to-profile | Profile for authenticating to the destination org (optional) |
--cleanup | Remove local images after successful copy (default: false) |
Common workflows
Environment promotion
Promote an image from development to production:CI/CD pipeline
Copy and clean up in automated pipelines:Troubleshooting
Authentication failed for source org
Authentication failed for source org
Verify you’re logged in to the source org:Re-authenticate if needed:
Authentication failed for destination org
Authentication failed for destination org
Check the destination profile has valid credentials:Re-authenticate the profile:
Push denied
Push denied
Verify you have push permission on images in the destination org. Check your policies or ask an org admin to grant access. Also check the org name for any typos.
Image not found
Image not found
Verify the source image exists:Check the exact image name and tag.
Docker daemon not running
Docker daemon not running
Start Docker Desktop or the Docker daemon.