Get Environment Variables in Docker - Docker Commands

View environment variables in a Docker container

Code

docker exec CONTAINER_ID /bin/sh -c /usr/bin/env