Discover Docker - Quiz 2

Discover Docker - Quiz 2

University

12 Qs

quiz-placeholder

Similar activities

Chapter 14 (Docker)

Chapter 14 (Docker)

University

15 Qs

SBkWN8DVzDakkFvEHov0tk8nuO6ndDmJ86yAkwN9blE=

SBkWN8DVzDakkFvEHov0tk8nuO6ndDmJ86yAkwN9blE=

University

10 Qs

Introduction to Cloud Native Fundamentals Quiz

Introduction to Cloud Native Fundamentals Quiz

University - Professional Development

15 Qs

Docker fundamentals

Docker fundamentals

University

12 Qs

Latihan 8 - Cloud Computing - 2TRKA

Latihan 8 - Cloud Computing - 2TRKA

University

15 Qs

Chapter 10 (Docker)

Chapter 10 (Docker)

University

16 Qs

Docker #1

Docker #1

University

10 Qs

Section 2: Imperative Commands with Kubectl

Section 2: Imperative Commands with Kubectl

University

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