How To Reverse Engineer A Docker Image
Jump to:
Note
This article provides easily accessible commands to inspect underlying Docker base images, aiming to determine verified ways of building Docker images more efficiently from restrictive ones.
Instructions 📘
Run command below to retrieve the build history of a Docker image, formatting each step by who created it without truncating any lines.
docker history --format "{{.CreatedBy}}" <docker_image_name> --no-trunc | tac
Run command below to export a running docker container as a .zip file:
docker export <docker_container_name/id> > latest.tar