Skip to content

Instantly share code, notes, and snippets.

@ridingintraffic
Created February 1, 2019 03:13
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 ridingintraffic/35c8d607aad93e1d4fd9c654b23f53b4 to your computer and use it in GitHub Desktop.
Save ridingintraffic/35c8d607aad93e1d4fd9c654b23f53b4 to your computer and use it in GitHub Desktop.
Python:
import os
print(os.environ['USERNAME'])
print(os.environ['PASSWORD'])
Docker:
docker run --env USERNAME=$USERNAME --env PASSWORD=$PASSWORD -- name docker-nginx -p 8080:80 -d nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment