Discover Docker - Quiz 2

Discover Docker - Quiz 2

University

12 Qs

quiz-placeholder

Similar activities

Section 2: Imperative Commands with Kubectl

Section 2: Imperative Commands with Kubectl

University

11 Qs

Chapter 14 (Docker)

Chapter 14 (Docker)

University

15 Qs

Chapter 8-1 (Docker)

Chapter 8-1 (Docker)

University

11 Qs

docker iniciante

docker iniciante

University

10 Qs

Node.js and Express.js Fun Challenge

Node.js and Express.js Fun Challenge

University

10 Qs

computer Networks

computer Networks

University

10 Qs

NT132-16.05

NT132-16.05

University

8 Qs

Sistemas de Virtualización Unidad2

Sistemas de Virtualización Unidad2

University

14 Qs

Discover Docker - Quiz 2

Discover Docker - Quiz 2

Assessment

Quiz

Computers

University

Medium

Created by

Karunya Hacks

Used 5+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?