Created
February 20, 2016 11:23
-
-
Save frntn/5495e63fac1d83c1eb11 to your computer and use it in GitHub Desktop.
Undocumented Docker Environment Variables
This file contains hidden or 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
# clone repo and extract all DOCKER_* environment variables used in the code | |
git clone https://github.com/docker/docker.git | |
cd docker | |
grep -rn "os.Getenv" . | sed -r 's/([^:]*:[0-9]*:).*os.Getenv\(([^\)]*)\).*/\2/' | grep DOCKER_ | sort -u | |
# remove all documented DOCKER_* envrionemnt variables (https://docs.docker.com/engine/reference/commandline/cli/#environment-variables) | |
"DOCKER_BINARY" | |
"DOCKER_CONTAINER_NAT" | |
"DOCKER_CONTENT_TRUST_OFFLINE_PASSPHRASE" | |
"DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE" | |
"DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE" | |
"DOCKER_CONTENT_TRUST_TAGGING_PASSPHRASE" | |
"DOCKER_ENGINE_GOARCH" | |
"DOCKER_GRAPHDRIVER" | |
"DOCKER_REMAP_ROOT" | |
"DOCKER_REMOTE_DAEMON" | |
"DOCKER_USERLANDPROXY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment