Docker MCQs – Installing Docker

11.) On which Linux distributions is Docker officially supported?

A) Only Ubuntu and CentOS
B) Only Debian-based distributions
C) Most major distributions, including Ubuntu, CentOS, Fedora, and Debian
D) Only Red Hat-based distributions

Answer: Option C

Explanation: Docker is officially supported on most major Linux distributions, including Ubuntu, CentOS, Fedora, and Debian.

12.) Which command starts the Docker service after installation on Linux?

A) systemctl enable docker
B) systemctl start docker
C) docker start
D) service docker enable

Answer: Option B

Explanation: The command systemctl start docker starts the Docker service after installation.

13.) What is the minimum required version of Windows 10 to install Docker Desktop?

A) Version 1709
B) Version 1803
C) Version 1903
D) Version 2004

Answer: Option D

Explanation: Docker Desktop requires Windows 10 version 2004 or later.

14.) How do you uninstall Docker on Linux?

A) docker uninstall
B) apt-get remove docker-ce
C) yum remove docker
D) Both B and C

Answer: Option D

Explanation: Docker can be uninstalled using apt-get remove docker-ce on Debian-based systems or yum remove docker on Red Hat-based systems.

15.) What is the purpose of the docker-compose plugin during installation?

A) To manage single-container applications
B) To manage multi-container applications
C) To debug Docker containers
D) To debug Docker containers

Answer: Option B

Explanation: The docker-compose plugin is used to manage multi-container applications.

16.) Which Docker version is free to use for individuals and small businesses?

A) Docker Community Edition (CE)
B) Docker Enterprise Edition (EE)
C) Docker Desktop Enterprise
D) Docker Pro

Answer: Option A

Explanatio Docker Community Edition (CE) is free and intended for individuals and small teams.

17.) What prerequisite must be installed before installing Docker on Windows?

A) Windows PowerShell
B) Hyper-V
C) VirtualBox
D) Microsoft Edge

Answer: Option B

Explanation: Docker on Windows requires Hyper-V to create and manage containers.

18.) What is the command to check the status of Docker service on Linux?

A) docker status
B) service docker status
C) systemctl status docker
D) docker –status

Answer: Option C

Explanation: The systemctl status docker command displays the current status of the Docker service.

19.) Which of the following is installed alongside Docker Desktop?

A) Docker CLI
B) Docker Daemon
C) Docker Compose
D) All of the above

Answer: Option D

Explanation: Docker Desktop installs Docker CLI, Docker Daemon, and Docker Compose together.

20.) Which command is used to install Docker on macOS?

A) brew install docker
B) apt-get install docker
C) yum install docker
D) zypper install docker

Answer: Option A

Explanation: On macOS, Docker can be installed using the Homebrew package manager with brew install docker.

Leave a Reply

Your email address will not be published. Required fields are marked *