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 local registry and a kind cluster run on the same Docker host but on separate networks. Learn how to connect them by attaching a running container to an additional Docker network.
A containerized application uses separate frontend and backend networks, but its database can still reach the internet. Make the backend network internal while keeping the application's access to external services.
A reverse proxy, application, and its database share one Docker network. Split the setup across two bridge networks, connecting the application to both so the proxy can reach the application but not the database.
A Docker container cannot reach a service running on the host because the firewall is blocking the connection. Learn how to troubleshoot container-to-host connectivity and allow the traffic without exposing the service to the network.
A Go app needs credentials to download a private module during its Docker build. Learn how to supply them without exposing them in image layers or the build cache.
Learn how to edit a file in a running Kubernetes Pod when the container's user has no write access to it.
Learn how to access a service bound to localhost of the Docker host from a bridge-networked container, without exposing the service to the local network or disabling network isolation.
A distroless container serves a debug interface on its own loopback address. Can you reach this debug endpoint using nothing but standard Docker commands?
You are containerizing the dev workflows of a legacy Python service and you need to find out which external services its test suite talks to. Can you think of an easy way to do it?