Chapter 2 (Docker)

Chapter 2 (Docker)

University

30 Qs

quiz-placeholder

Similar activities

ASW_08_EN_Allocation

ASW_08_EN_Allocation

University

28 Qs

docker

docker

University

30 Qs

CCV- 3rd Year

CCV- 3rd Year

University

25 Qs

File Management

File Management

1st Grade - University

30 Qs

ADVANCE JAVA PROGRAMMING

ADVANCE JAVA PROGRAMMING

University

27 Qs

1st Day

1st Day

University

25 Qs

Soal TIK Kls XII

Soal TIK Kls XII

University

25 Qs

B.Ed. Sem - I  ICT

B.Ed. Sem - I ICT

University

25 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?