wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Docker Basic

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is Docker?

a)

A version control system

b)

A containerization platform

c)

A programming language

d)

An operating system

2.

Which of the following best describes a Docker container?

a)

A lightweight virtual machine

b)

A package manager

c)
  • A runtime instance of a Docker image

d)

A command-line tool

3.

What is a Docker image?

a)

An executable package that includes everything needed to run a software

b)

A running instance of a container

c)

A tool for managing databases

d)

An IDE for developing software

4.

Which command is used to build a Docker image from a Dockerfile?

a)

docker create

b)

docker build

c)

docker run

d)

docker start

5.

Which instruction in a Dockerfile sets the working directory for any RUN, CMD, ENTRYPOINT, COPY, and ADD instructions that follow it?

a)

WORKDIR

b)

RUN

c)

CMD

d)

ENV

6.

What is the role of Docker Hub?

a)

To build Docker images

b)

To provide cloud-based storage and sharing of Docker images

c)

To monitor Docker containers

d)

To deploy Docker applications

7.

What is a .dockerignore file used for?

a)

To ignore certain Docker commands

b)
  • To exclude files and directories from being added to the Docker image

c)

To provide default configurations for Docker

d)
  • To list all Docker containers

8.

Which command is used to run a Docker container?

a)

docker create

b)

docker build

c)

docker run

d)

docker init

9.

What does the FROM instruction in a Dockerfile specify?

a)
  • The base image to use for the Docker image

b)

The maintainer of the Docker image

c)

The files to copy into the Docker image

d)

The command to run when the container starts

10.

Which command is used to list all Docker images on your system?

a)

docker ps

b)

docker images

c)

docker list

d)

docker show