Quick Reference
Build and Push Images
The most common workflow is building and pushing a local application:- Builds your image using the Dockerfile in the current directory
- Tags it for your org’s private registry
- Pushes it to
your-org.registry.cpln.io/my-app:v1
Build Options
- With Dockerfile
- With Buildpacks
- Without Docker (remote)
When
--dir is specified, the Dockerfile in that directory is used by default. Use --dockerfile to override this behavior.Use Images in Workloads
Reference your pushed images when creating workloads:Image Reference Formats
Authenticate Docker
For direct Docker operations, authenticate to your org’s registry:List and Manage Images
Copy Images Between Orgs
Copy an image to another organization:For cross-org copies with different credentials, use
--to-profile. See the Copy Images guide.CI/CD Authentication
For automated pipelines, setCPLN_TOKEN in your CI/CD platform’s secrets (e.g., GitLab CI/CD variables, GitHub secrets) and use the CLI directly:
CPLN_TOKEN when available.
On runners without a Docker daemon, swap --push for --remote and the image is built and pushed remotely instead:
Troubleshooting
Docker is not installed or the daemon is not running
Docker is not installed or the daemon is not running
Start Docker, or build without it:
The folder exceeds the 500 MB (or 20,000 entry) limit
The folder exceeds the 500 MB (or 20,000 entry) limit
A remote build uploads the whole build folder. Exclude what the build does not need by adding the large paths to
.dockerignore, then re-run the build.unknown shorthand flag: 'f' in -f
unknown shorthand flag: 'f' in -f
Docker Buildx is not installed. Install it:
Authentication failed or 403
Authentication failed or 403
Re-run
cpln image docker-login to refresh credentials and double check that you don’t have typos in the org name.Push denied
Push denied
Verify you have push permission on images. Check your policies or refresh your service account token.
Image too large
Image too large
Optimize your Dockerfile:
- Use multi-stage builds
- Start from smaller base images
- Remove unnecessary files
Learn More
Buildpacks Guide
Language-specific conventions for building without Dockerfiles
Push Images
Detailed guide for building and pushing images
Pull Images
Configure workloads to pull from private registries
Image Command Reference
Full command documentation