NEW
Font size
WorksheetsDocker Basic
Total questions: 10
Worksheet time: 5mins
What is Docker?
A version control system
A containerization platform
A programming language
An operating system
Which of the following best describes a Docker container?
A lightweight virtual machine
A package manager
A runtime instance of a Docker image
A command-line tool
What is a Docker image?
An executable package that includes everything needed to run a software
A running instance of a container
A tool for managing databases
An IDE for developing software
Which command is used to build a Docker image from a Dockerfile?
docker create
docker build
docker run
docker start
Which instruction in a Dockerfile sets the working directory for any RUN, CMD, ENTRYPOINT, COPY, and ADD instructions that follow it?
WORKDIR
RUN
CMD
ENV
What is the role of Docker Hub?
To build Docker images
To provide cloud-based storage and sharing of Docker images
To monitor Docker containers
To deploy Docker applications
What is a .dockerignore file used for?
To ignore certain Docker commands
To exclude files and directories from being added to the Docker image
To provide default configurations for Docker
To list all Docker containers
Which command is used to run a Docker container?
docker create
docker build
docker run
docker init
What does the FROM instruction in a Dockerfile specify?
The base image to use for the Docker image
The maintainer of the Docker image
The files to copy into the Docker image
The command to run when the container starts
Which command is used to list all Docker images on your system?
docker ps
docker images
docker list
docker show
