#查看docker File
#!/bin/bash
export PATH=$PATH
if [ $# -eq 1 ];then
docker history --format {{.CreatedBy}} --no-trunc=true $1 |sed "s///bin//sh/ -c/ /#(nop)/ //g"|sed "s///bin//sh/ -c/RUN/g" | tac
else
echo "sh Obtain_dockerfile.sh $DOCKER_IMAGE"
fi
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/182503.html