Chapter 2 (Docker)

Chapter 2 (Docker)

University

30 Qs

quiz-placeholder

Similar activities

CCC6 Chapter 2 - Operating Systems

CCC6 Chapter 2 - Operating Systems

University

25 Qs

docker

docker

University

30 Qs

Section 9: Networking (14-20)

Section 9: Networking (14-20)

University

32 Qs

TIA Chapter 6 Questions from the Reading

TIA Chapter 6 Questions from the Reading

University

25 Qs

B.Ed. Sem - I  ICT

B.Ed. Sem - I ICT

University

25 Qs

Algorithms are not magic - AQA A Level Computer Science

Algorithms are not magic - AQA A Level Computer Science

8th Grade - University

25 Qs

Cloud Computing

Cloud Computing

University

30 Qs

ICT 161-190

ICT 161-190

University

30 Qs

Chapter 2 (Docker)

Chapter 2 (Docker)

Assessment

Quiz

Computers

University

Medium

Created by

Kelly Gafford

Used 4+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of a Dockerfile?
To define the steps for building a Docker image
To run a Docker container
To manage Docker networks
To store Docker volumes

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Dockerfile instruction is used to specify the base image for a new image?
FROM
RUN
COPY
CMD

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the role of the RUN instruction in a Dockerfile?
To copy files into the image
To execute commands during the image build process
To set environment variables
To define the default command to run when a container starts

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Dockerfile instruction is used to define the command that will be executed when a container starts from the image?
ENTRYPOINT
CMD
RUN
EXEC

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the .dockerignore file?
To specify which files and directories should be excluded from the build context
To define the build arguments for a Docker image
To set environment variables during the build process
To configure the network settings for a Docker container

6.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are valid Dockerfile instructions?
ADD
ENV
LABEL
PUSH

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following statements about Docker image layers are true?
Each instruction in a Dockerfile creates a new layer in the image
Docker layers are read-only
Docker layers can be shared between multiple images
Docker layers can be modified after the image is built

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?