Chapter 2 (Docker)

Chapter 2 (Docker)

University

30 Qs

quiz-placeholder

Similar activities

Css-BoxModel

Css-BoxModel

University

25 Qs

Review 32 - Will/going to

Review 32 - Will/going to

University

25 Qs

Atividade sobre Modelos de Processo de Software

Atividade sobre Modelos de Processo de Software

University

25 Qs

Module 3 - Security Architecture

Module 3 - Security Architecture

University

25 Qs

Aptitude Competition(FY)

Aptitude Competition(FY)

University

25 Qs

Operating system

Operating system

7th Grade - University

25 Qs

Round 1-S1

Round 1-S1

University

25 Qs

Solutions. Test on un5 (Techn, modal perfect,quantifiers)

Solutions. Test on un5 (Techn, modal perfect,quantifiers)

9th Grade - University

25 Qs

Chapter 2 (Docker)

Chapter 2 (Docker)

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Kelly Gafford

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers