Have you failed a job interview?
Send us your job interview questions and get correct answers.

What is the scope of a variable defined using the ARG instruction within a Dockerfile?

Experience Level: Senior
Tags: Docker


An ARG variable definition comes into effect from the line on which it is defined in the Dockerfile not from the argument’s use on the command-line or elsewhere.


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