
Docker - A Complete Hands-On Guide - Few More Things
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the 'FROM' instruction in a Dockerfile?
To expose a port
To set environment variables
To run a command in the Docker image
To specify the base image for the Docker image
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command would you use to set the default command for a Docker container?
CMD
EXPOSE
RUN
FROM
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key difference between the COPY and ADD instructions in a Dockerfile?
ADD compresses files, COPY does not
COPY can handle URLs, ADD cannot
COPY compresses files, ADD does not
ADD can handle URLs, COPY cannot
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are environment variables defined in a Dockerfile?
Using the CMD instruction
Using the ENV instruction
Using the FROM instruction
Using the RUN instruction
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the EXPOSE instruction in a Dockerfile do?
It specifies the port on which the container listens
It copies files into the image
It runs a command
It sets the base image
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?