Resources

See one of these in the Docker docs and choose your OS there:

Or continue to either the Docker Desktop or Docker Engine instructions below.

Install Docker Desktop

Windows and macOS only. For Linux, see Docker Engine below.

Recommended - install the Docker Desktop app. This also covers Docker CLI, so you don’t have to install that separately.

Warning - please see the license details as this can be used for personal projects fine but needs a paid license if used in your org.

For info and links to download and install, see:

Docker Desktop helps you build, share, and run containers easily on Mac and Windows as you do on Linux. Docker handles the complex setup and allows you to focus on writing the code

What you get

Installing the app sets up a desktop app which handles updates and shortcut on the taskbar for quick access to a few things. Including switching between Kubernetes namespaces (like prod and dev).

Docker Desktop includes Docker Engine, Docker CLI client, Docker Compose, Notary, Kubernetes, and Credential Helper.

Install on your OS

Linux solution is in development still.

macOS

Go to this page:

There is a file to download from the browser. Drag the downloaded Docker.app to your Applications as per the install instructions and you’ll get Docker app.

This install includes both Docker CLI and the Docker Desktop app. The latter docks as an icon at the top of the screen and allows functionality like signing into Docker hub, changing Kubernetes environment.

Windows

Go to this page:

Install Docker Engine

What you get

This allows you to run Docker CLI and the Docker daemon (which needs to be started to get containers to run and the CLI interfaces with this daemon).

  • A server with a long-running daemon process dockerd.
  • APIs which specify interfaces that programs can use to talk to and instruct the Docker daemon.
  • A command line interface (CLI) client docker.

Documentation

Install on your OS

Windows, macOS and Linux.

I can’t see instructions for Windows and macOS though - just the desktop instructions.

macOS

$ brew install docker

You might need to install and run docker-machine too as per article.

$ brew install docker-machine

Linux

$ sudo apt-get install docker.io

If that doesn’t work, below are instructions from the Debian install guide.

  1. Remove old Docker packages in case they exist.
     sudo apt-get remove docker docker-engine docker.io containerd runc
    
  2. Install the newer packages.
     $ sudo apt-get update
     $ sudo apt-get install docker-ce docker-ce-cli containerd.io
    

If you want to run without sudo but get an error on permissions, then change access for /var/run/docker.sock. NB. this must be owned by root always and on a reboot it will be reset to root each time. So maybe this will work:

$ sudo chmod 666 /var/run/docker.sock

Check your version:

$ sudo docker -v
Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2

Verify that Docker works by using:

$ docker run hello-world