Docker Tip #58: Output All of Your Container's ENV Variables
This isn't really a Docker tip because you can do the same thing on any Linux based OS but it's useful nonetheless.
Once in a while I find myself wanting to quickly see the values of all environment variables running in a container. This is useful when you configure your apps through ENV variables.
View your container’s environment variables:
docker container run --rm alpine:3.7 env # The above command produces this output: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=157baf151103 HOME=/root