★ WELCOME ★

This is an old revision of the document!


Docker Reference Page

Tom Clark 2022/02/12 09:25

If you are new to Docker technology, here is a guide that I found very helpful:

Docker Tutorial for Beginners [FULL COURSE in 3 Hours]
by TechWorld with Nana via Youtube

What does a Docker structure look like?

  • Layers of images
    • Base image is usually a tiny Gnu/Linux footprint;
    • Intermediate images are libraries/services like a database, etc.;
    • The application image is the top layer).
  • Mostly Linux Base Images, like Alpine, because they are so small in size

Why Docker vs a Virtual Machine?

  • Docker is less resource hungry because Docker containers use the host Linux kernel.

Where are docker containers stored?

  • I think the big public repository is hub.docker.com.

How to install Docker?

  • This can change, so get the latest information by doing an Internet search “Install Docker” and go to the official docker documentation. At this time, it's located at docs.docker.com.
  • As of 12 Feb 2022, Linux Mint 20.3 is based on Ubuntu 20.04 “Focal”. Try [cat /etc/upstream-release/lsb-release] in the terminal or visit https://en.wikipedia.org/wiki/Linux_Mint#Ubuntu-based_editions to verify your upstream distribution. Be careful if you are using Linux Mint LMDE, which is downstream of Debian, not Ubuntu.
# Display images that are running:
docker ps
  -a = list both running and stopped images

# Display all docker images downloaded to and stored on your machine:
docker images

# Download a container based on latest version of an image:
docker pull [name-of-image] 

# Start a container based on a specific version of image (pulls image from hub if not already downloaded to your machine:
docker run [flags] [name-of-image or id-of-image]:[version] 
  -d = runs in detached mode (so you can continue to use your terminal instance.
  -p = port binding [port host]:[container port] or rather host's bare metal port bound to application's port (i.e. -p6000:6000)

# Stop a container:
docker stop [last 12 positions of container id] 

# To view a container's logs:
docker logs [last 12 positions of container id] 


Print/export