Docker Setup Exercise
Install using Ubuntu repositories:
sudo apt install docker.io -y
Alternatively, by downloading from download.docker.com
Checking that docker cli (command line interface) is installed:
docker --version
Checking that docker daemon is running
sudo docker images
Expected output is an empty list as we have not created/pulled any images
Running your first container:
sudo docker run hello-world
Expected output:
78445dd45222: Pull complete Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7 Status: Downloaded newer image for hello-world:latest Hello from Docker! ... more text comes here...
List your container:
sudo docker ps -a
Expected output is a list with one item on it
Last updated
Was this helpful?