Dockerfile MCQs with answers
67 questions tagged Dockerfile, each with the correct answer and an explanation. Page 4 of 4.
- What is the use of the EXPOSE instruction in a Dockerfile?
- Which instruction in Dockerfile is best for setting environment variables?
- What does the CMD instruction do?
- Which instruction is used to copy files from the host to the image?
- Which Dockerfile instruction sets the working directory inside the container?
- What does the RUN instruction do in a Dockerfile?
- Which Dockerfile instruction is used to specify the base image?