0
0
Dockerdevops~10 mins

Installing Docker - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to update the package list before installing Docker.

Docker
sudo apt-get [1]
Drag options to blanks, or click blank then click option'
Aremove
Bupdate
Cupgrade
Dinstall docker
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Using 'install' instead of 'update' causes errors because packages are not refreshed.
2fill in blank
medium

Complete the command to install Docker Engine on Ubuntu.

Docker
sudo apt-get install -y [1]
Drag options to blanks, or click blank then click option'
Adocker-ce
Bdocker-compose
Cdocker-swarm
Ddocker-hub
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Choosing 'docker-compose' installs a different tool for multi-container apps.
3fill in blank
hard

Fix the error in the command to add Docker’s official GPG key.

Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo [1] --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Drag options to blanks, or click blank then click option'
Agpg --import
Bapt-key add
Cgpg2
Dgpg
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Using 'apt-key add' is deprecated and causes warnings.
4fill in blank
hard

Fill both blanks to add the Docker repository to apt sources.

Docker
echo "deb [arch=[1] signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu [2] stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Drag options to blanks, or click blank then click option'
Aamd64
Barm64
Cfocal
Dbionic
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Using wrong architecture or Ubuntu codename causes repository errors.
5fill in blank
hard

Fill all three blanks to verify Docker installation by running the hello-world container.

Docker
sudo docker [1] hello-world && sudo docker [2] && sudo docker [3]
Drag options to blanks, or click blank then click option'
Arun
Bps
Cversion
Dstart
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Using 'start' instead of 'run' for the first command causes errors.