Docker MCQs – Installing Docker

21.) Which installation method is recommended for Docker on cloud servers?

A) Manual installation from binaries
B) Using cloud-specific Docker images
C) Installing Docker Desktop
D) Using virtual machines

Answer: Option B

Explanation: For cloud servers, cloud-specific Docker images (e.g., AWS AMIs with Docker pre-installed) are recommended.

22.) How is Docker updated on Linux systems?

A) docker update
B) Using the package manager
C) Reinstalling Docker
D) Using Docker CLI commands

Answer: Option B

Explanation: Docker can be updated on Linux systems by using the respective package manager like apt or yum.

23.) What is the size of the default Docker Desktop installation?

A) ~200 MB
B) ~400 MB
C) ~1 GB
D) ~2 GB

Answer: Option C

Explanation: The default Docker Desktop installation is approximately 1 GB in size.

24.) What happens if Docker is installed on a system without enough disk space?

A) Docker will refuse to install.
B)Docker will install but fail to run containers.
C) Docker will prompt for manual disk space allocation.
D) Docker will disable image caching.

Answer: Option B

Explanation: Docker may install successfully but fail to run containers if the system lacks sufficient disk space.

25.) How can you enable Docker to start automatically on Linux?

A) systemctl enable docker
B) service docker enable
C) docker –auto-start
D) enable docker boot

Answer: Option A

Explanation: The command systemctl enable docker ensures that Docker starts automatically during system boot.

Leave a Reply

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