You have a variable declared using ARG and the same variable declared using ENV instruction in your Dockerfile. What variable value will be used?
Experience Level: Not defined
Tags: Docker
Answer
Related Docker job interview questions
What is the RUN instruction good for in Docker?
Docker Not definedAre ARG variables persisted into the built images in Docker?
Docker Not definedWhat is the scope of a variable defined using the ARG instruction within a Dockerfile?
Docker Not definedHow do you provide default values for variables defined using ARG instruction in Dockerfile?
Docker Not definedWhat is the ARG instruction good for in Docker?
Docker Not defined