PRACTICE / UNDERSTAND / REPEAT
Docker practice question
Practice images with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
1 questionAnswers explainedFree · no login
Try this question
Which command builds the current directory and tags the resulting image app:v1?
Answer & explanation
Answer: docker build -t app:v1 .
docker build uses the final argument as the build context. -t assigns the image reference.