Tangible Bytes

A Web Developer’s Blog

See How a Docker Image was Built

I had a docker image and couldn’t find the Dockerfile but wanted to see what was in it

docker image history --no-trunc --format="{{.CreatedBy}}" imagename

It’s not as good as the Dockerfile but shows a lot of what is going on.

Also a reminder that commands in a container aren’t secret just because the image is in binary form.