Simple Docker Get Started Guide

Step 0

Tech Notes
3 min readFeb 23, 2022


Check your docker install

$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pulling fs layer
2db29710123e: Verifying Checksum
2db29710123e: Download complete
2db29710123e: Pull complete
Digest: sha256:97a379f4f88575512824f3b352bc03cd75e239179eea0fecc38e597b2209f49a
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
For more examples and ideas, visit:

If your output looks like that then you’re good.

Step 1

Pull the latest Ubuntu image

docker pull ubuntu

my output looks like this:

$ docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
08c01a0ec47e: Pulling fs layer
08c01a0ec47e: Verifying Checksum
08c01a0ec47e: Download complete
08c01a0ec47e: Pull complete
Digest: sha256:669e010b58baf5beb2836b253c1fd5768333f0d1dbcb834f7c07a4dc93f474be
Status: Downloaded newer image for ubuntu:latest

Use “docker images” to see your new ubuntu image you just pulled

$ docker images
ubuntu latest 54c9d81cbb44 3 weeks ago 72.8MB
hello-world latest feb5d9fea6a5 5 months ago 13.3kB

Step 2

Load a container from the ubuntu image and run a command. A container is basically an instance of an image.

$ docker run ubuntu echo "hello from ubuntu!"…