Docker
Setting up a Docker remote build cache on DevZero.
Remote build/cache using DOCKER_HOST
- Create a new workspace with Docker installed (How-to).
- Make sure you are connected to the DevZero network:
- Set
DOCKER_HOST
environment variable on your machine to match the DevBox hostname:
- Verify the installation by running:
When you run the docker build
command, the build context will be sent to the DevBox and the build process will run.
If you're seeing "Host key verification failed" error, try connecting to your DevBox via ssh first to verify the fingerprint.
Remote build using BuildKit
- Create a new workspace with Docker installed (How-to).
- Inside your DevBox, run the BuildKit container:
See Remote driver docs for all available options.
- On your machine, create a new buildx instance:
- Build an image using remote driver (and download it locally):
Remote cache using Docker Registry
- Create a new workspace with Docker installed (How-to).
- Inside your DevBox, install the Docker Registry:
See CNCF Distribution guide for available options.
- Make sure your machine is connected to the DevZero network:
- Verify you can access the registry from your machine:
- Build and push your image to the registry
With Docker:
With BuildKit remote cache (see previous section):
- Verify the image is available in the registry:\
If you're getting "http: server gave HTTP response to HTTPS client", try adding the following to your Docker daemon json configuration: