CICD-119 · Export and re-import a candidate image
Encyclopedia · Docker image building · All snippets
Previous · CICD-118 · Next · CICD-120
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites Docker Engine or BuildKit on a trusted lab runner.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
docker save web:ci -o web-image.tar
docker load -i web-image.tar3. How it works
The local image and its metadata are serialized for transfer or subsequent docker load. The command archives or inspects the selected files. Verify the relative paths and file set before using the archive downstream.
4. Verify the result
Use a trusted artifact and verify the resulting image config ID.
Validation syntax-validated (Bash parse). Status definitions.