Skip to content

Instantly share code, notes, and snippets.

@mumoshu
Created February 28, 2018 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mumoshu/45a34a2e1fa1ac6d32bd510acb4ee4a2 to your computer and use it in GitHub Desktop.
Save mumoshu/45a34a2e1fa1ac6d32bd510acb4ee4a2 to your computer and use it in GitHub Desktop.
Since Docker version released Mar. 2017
sh -c 'image=mytestimage; FTP_PROXY=$(dd if=/dev/zero of=output.dat bs=180k count=1 && cat output.dat | base64); secret=$FTP_PROXY; docker build --build-arg FTP_PROXY=$secret -t $image . && ! docker inspect $image | grep $secret && ! docker history $image | grep $secret'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment