CICD-145 · Remove registry auth from local configuration
Encyclopedia · Registries and releases · All snippets
Previous · CICD-144 · Next · CICD-146
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites authorized test registry, scoped credentials and candidate artifact.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
REGISTRY.
2. Copy the snippet
bash
docker logout "${REGISTRY:?}"3. How it works
Logout removes the registry authentication entry from this Docker client configuration.
4. Verify the result
If using an ephemeral Docker config also remove the job-owned temp directory on exit.
Validation syntax-validated (Bash parse). Status definitions.