Skip to content

Instantly share code, notes, and snippets.

@nouchka
Last active April 9, 2017 13:10
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 nouchka/c371021f82945db39c771ada72ec7c10 to your computer and use it in GitHub Desktop.
Save nouchka/c371021f82945db39c771ada72ec7c10 to your computer and use it in GitHub Desktop.
Docker secret from env file
cat .env |awk -F\= '{gsub(/"/,"",$2);system("echo "$2"| docker secret create "$1" - ")}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment