Last active
April 9, 2017 13:10
-
-
Save nouchka/c371021f82945db39c771ada72ec7c10 to your computer and use it in GitHub Desktop.
Docker secret from env file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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