View environment variables of docker container

To see the environment variables that are set inside a running docker container, run:

docker inspect -f '{{range $index, $value := .Config.Env}}{{println $value}}{{end}}’ CONTAINER_NAME_OR_ID