Get Environment Vars from inside Docker container

# Replace 'container_name' and 'ENV_VAR' as per your needs docker exec container_name bash -c 'echo "$ENV_VAR"'
A CLI method to check environment vars inside a running Docker container

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.