Recover a Deleted Secret from a Docker Image
A file deleted by a later Dockerfile instruction disappears from the container's filesystem but stays in an earlier image layer. Learn how to inspect the layers of an image and recover such a file.
Focused, hands-on DevOps and server-side problems with hints, feedback, and automated solution checks.
A file deleted by a later Dockerfile instruction disappears from the container's filesystem but stays in an earlier image layer. Learn how to inspect the layers of an image and recover such a file.
A Go service that has always been shipped as a static binary in a scratch-y image suddenly fails to start in a container, while the local build works as before. Find what recent changes caused it and fix the image without reverting them.
Sometimes an image needs to be removed from a registry - because it was pushed by mistake, contains sensitive data, or simply should no longer be available. Practice purging a container image properly: remove the tag, trace it to the manifest and blobs behind it, and make sure the image can no longer be pulled - even by digest.
Practice discovering what has been published to a remote container repository by listing its tags using crane, regctl, or a direct call to the registry HTTP API.
Stand up a self-hosted container registry so you can push and pull images without relying on a third-party registry. Useful for tests, internal services, air-gapped environments, or just for poking at the OCI Distribution API.
An internal service is halfway through a Python-to-Go rewrite: the amd64 build already runs the new Go code while arm64 still ships the legacy Python one - same API, two completely different codebases and Dockerfiles. Can you build and push a single multi-platform image from the two independent single-platform variants?
Practice using docker login to authenticate against multiple private container registries with different credentials, then pull and push images across them.
Get container images onto a server that has no route to the Internet or access to a container registry.
Re-tag local container images with fully-qualified references and publish them to different registries using the 'docker tag' and 'docker push' commands.
Explore the OCI image index, manifests, and configuration of a remote multi-platform image - without pulling a single byte of filesystem layers into the local Docker daemon.