Search Header Logo

Discover Docker - Quiz 2

Authored by Karunya Hacks

Computers

University

Used 5+ times

Discover Docker - Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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>

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?