PRACTICE / UNDERSTAND / REPEAT

Docker: Images

Practice images with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

20 questionsAnswers explainedFree · no login
Question 1 of 20
Images · MCQQuestion link ↗

Which command builds the current directory and tags the resulting image app:v1?

Choose one answer
Answer & explanation

Answer: docker build -t app:v1 .

docker build uses the final argument as the build context. -t assigns the image reference.