NEW
Font size
S
M
L
XL
WorksheetsDAK Quiz-1
Total questions: 10
Worksheet time: 4mins
Name
Class
Date
1.
Every line of Dockerfile is called
a)
Layer
b)
Section
c)
Entry
d)
Command
2.
Which command does NOT open a shell session
a)
RUN
b)
CMD
3.
How do you set the working directory in the Dockerfile?
a)
WORKDIR
b)
SETDIR
c)
DIR
d)
CD "<path>"
4.
Which command would import node version 12?
a)
FROM node:12
b)
IMPORT node:12
c)
ADD node node:12
d)
FROM node:v12
5.
How would you build an image?
a)
docker build -p <imageName> .
b)
docker build -t <imageName> .
c)
docker -p build <imageName> .
d)
docker -t build <imageName> .
6.
What command would you use to run an image named Example:1.0?
a)
docker run -t Example:1.0
b)
docker run -t Example:1.0
c)
docker -t run Example:1.0
d)
docker run -p Example:1.0
7.
Which command maps the port 8080 of your container to 5000 of your machine?
a)
docker run -t 8080:5000 <image-id>
b)
docker run -p 8080:5000 <image-id>
c)
docker run -t 5000:8080 <image-id>
d)
docker run -p 5000:8080 <image-id>
8.
docker container is running instance of my docker image?
a)
True
b)
False
9.
what is docker hub?
a)
A public repository of docker images
b)
A tool for managing docker images
c)
A tool for monitoring docker hosts
10.
why is docker ps command is used?
a)
To see the stopped container
b)
To see the images
c)
To see the Running container
Reset
