How can you view the values on the environment variables that were set using the ENV instruction in a Dockerfile?

Experience Level: Senior
Tags: Docker

Answer

You can view the values using docker inspect, and change them using docker run --env <key>=<value>.

Comments

No Comments Yet.
Be the first to tell us what you think.
Docker instructions
Docker instructions

Are you learning Docker ? Try our test we designed to help you progress faster.

Test yourself