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>.
Related Docker job interview questions
How do you copy files to your Docker image during built while configuring permissions as well?
Docker SeniorWhat is the COPY instruction in Docker good for?
Docker SeniorWill the variables set using the ENV instruction in a Dockerfile be persisted in the built image?
Docker SeniorWhat is the ENV instruction good for in Docker?
Docker SeniorWhat is the ENTRYPOINT instruction good for in Docker?
Docker Senior