Challenge - 5 Problems
Docker Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Docker Installation Verification
After installing Docker on a Linux system, you run the command
docker --version. What is the expected output format?Docker
docker --versionAttempts:
2 left
💡 Hint
The command shows the installed Docker version and build info.
✗ Incorrect
The
docker --version command outputs the Docker version and build number in a specific format like 'Docker version 24.0.2, build abc1234'. Other outputs indicate errors or missing installation.🧠 Conceptual
intermediate2:00remaining
Docker Installation Prerequisites
Which of the following is a necessary prerequisite before installing Docker on a Linux system?
Attempts:
2 left
💡 Hint
Docker requires a specific OS architecture to run.
✗ Incorrect
Docker requires a 64-bit OS to run properly. Node.js, Java, or disabling firewalls are not prerequisites for Docker installation.
❓ Configuration
advanced2:00remaining
Docker Repository Setup on Ubuntu
Which command correctly adds the official Docker repository key on Ubuntu before installing Docker?
Attempts:
2 left
💡 Hint
The official Docker docs recommend using gpg with dearmor for keyring.
✗ Incorrect
Option D correctly downloads and adds the Docker GPG key in the recommended keyring location. Option D uses deprecated apt-key. Option D installs Docker but does not add the key. Option D is invalid for Docker.
❓ Troubleshoot
advanced2:00remaining
Docker Daemon Not Starting
After installing Docker, the command
sudo systemctl start docker fails with the error: Failed to start docker.service: Unit docker.service not found. What is the most likely cause?Attempts:
2 left
💡 Hint
The error means the system cannot find the Docker service unit file.
✗ Incorrect
If the service unit file is missing, it usually means Docker was not installed properly. Lack of sudo or internet would cause different errors. If daemon was running, start would not fail with 'not found'.
🔀 Workflow
expert3:00remaining
Correct Docker Installation Steps on CentOS
What is the correct order of commands to install Docker on CentOS 8?
Attempts:
2 left
💡 Hint
First add repo, then install packages, then start and enable service.
✗ Incorrect
The correct workflow is to add the Docker repo first, install Docker packages next, then start the Docker service and enable it to start on boot.