In this WhaleDeck Shorts, I answer the question of How to get a Docker container's envs. The answer is quite simple.
The answer is quite simple. The following command shows how to get the environment variables of the Docker container my_container.
docker container inspect -f '{{range .Config.Env}}{{printf "%s\n" .}}{{end}}' my_container