How To Reverse Engineer A Docker Image
Jump to:
This article aims to provide easily accessible commands you could use to understand underlying docker base images:
Why
To determine verified ways of building docker images more efficiently from restrictive docker images.
Instructions
Use the 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
Use the command below to export a running docker container as a .zip
file:
docker export <docker_container_name/id> > latest.tar