命令为:

docker history --format {{.CreatedBy}} --no-trunc=true imagesName:V|sed "s?/bin/sh\ -c\ \#(nop)\ ??g"|sed "s?/bin/sh\ -c?RUN?g" | tac

通过镜像反推Dockerfile命令

相关文章: