标签:form code ima UNC -bash ash class image history
#查看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
标签:form code ima UNC -bash ash class image history
原文地址:https://blog.51cto.com/13447608/2464148