Question: Exercise Overriding ARG in a build The ARG Dockerfile instruction allows us to set a variable in a Dockerfile and then optionally override it when
Exercise
Overriding ARG in a build
The ARG Dockerfile instruction allows us to set a variable in a Dockerfile and then optionally override it when building an image. We've added a Dockerfile to your current working directory with the following instructions:The Dockerfile adds an ARG named WELCOMETEXT, which is then printed during the build. The same text is printed when a container is started from the image. InstructionsXP
Using the terminal, enter the command to build the Dockerfile and set the WELCOMETEXT variable to
Terminal
Slides
s
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
