1. View the Dockerfile script json information of the docker image:
cd /var/lib/docker/image/overlay2/imagedb/content/sha256
2. View Dockerfile
cd /var/lib/docker/overlay2
find ./* -name Dockerfile
3. View detailed Dockerfile
docker history --format {
{.CreatedBy}} --no-trunc=true 镜像id |sed "s/\/bin\/sh\ -c\ \#(nop)\ //g"|sed "s/\/bin\/sh\ -c/RUN/g" | tac