Discover Docker - Quiz 2

Discover Docker - Quiz 2

University

12 Qs

quiz-placeholder

Similar activities

POP QUIZ 4 (DFC40243)

POP QUIZ 4 (DFC40243)

University

10 Qs

Quiz Webinar GNS3

Quiz Webinar GNS3

10th Grade - University

13 Qs

Chap 1: What is a program made of?

Chap 1: What is a program made of?

University

13 Qs

CP N5 Theory Test 1

CP N5 Theory Test 1

University

10 Qs

Computer Science: Computer Systems

Computer Science: Computer Systems

6th Grade - University

10 Qs

Chapter 2 Testing Throughout the SDLC

Chapter 2 Testing Throughout the SDLC

University

9 Qs

CompTIA Core 2  20221023

CompTIA Core 2 20221023

University

10 Qs

Komponen Jaringan & Pengkabelan

Komponen Jaringan & Pengkabelan

University

15 Qs

Discover Docker - Quiz 2

Discover Docker - Quiz 2

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Karunya Hacks

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Every line of Dockerfile is called

Layer
Section
Entry
Command

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which command does NOT open a shell session

RUN
CMD

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you set the working directory in the Dockerfile?

WORKDIR
SETDIR
DIR
CD "<path>"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command would import node version 12?

FROM node:12
IMPORT node:12
ADD node node:12
FROM node:v12

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How would you build an image?

docker build -p <imageName> .
docker build -t <imageName> .
docker -p build <imageName> .
docker -t build <imageName> .

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command would you use to run an image named Example:1.0?

docker run -t Example:1.0
docker run -t Example:1.0
docker -t run Example:1.0
docker run -p Example:1.0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command maps the port 8080 of your container to 5000 of your machine?

docker run -t 8080:5000 <image-id>
docker run -p 8080:5000 <image-id>
docker run -t 5000:8080 <image-id>
docker run -p 5000:8080 <image-id>

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?