0
0
Dockerdevops~20 mins

Installing Docker - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Docker Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2: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 --version
AVersion: 24.0.2
Bdocker: command not found
CDocker version 24.0.2, build abc1234
DError: Docker daemon not running
Attempts:
2 left
💡 Hint
The command shows the installed Docker version and build info.
🧠 Conceptual
intermediate
2:00remaining
Docker Installation Prerequisites
Which of the following is a necessary prerequisite before installing Docker on a Linux system?
AInstalling Node.js first
BHaving a 64-bit operating system
CDisabling all firewalls
DInstalling Java Runtime Environment
Attempts:
2 left
💡 Hint
Docker requires a specific OS architecture to run.
Configuration
advanced
2:00remaining
Docker Repository Setup on Ubuntu
Which command correctly adds the official Docker repository key on Ubuntu before installing Docker?
Asudo add-apt-repository ppa:docker/stable
Bwget -qO - https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Csudo apt-get install docker-ce
Dcurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Attempts:
2 left
💡 Hint
The official Docker docs recommend using gpg with dearmor for keyring.
Troubleshoot
advanced
2: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?
ADocker package was not installed correctly
BThe user does not have sudo privileges
CThe Docker daemon is already running
DThe system is missing internet connection
Attempts:
2 left
💡 Hint
The error means the system cannot find the Docker service unit file.
🔀 Workflow
expert
3:00remaining
Correct Docker Installation Steps on CentOS
What is the correct order of commands to install Docker on CentOS 8?
A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
First add repo, then install packages, then start and enable service.