Installing Docker

Docker is available for Linux, MacOS, and Windows, making it something very useful for developers who run into the ‘but it works on my machine’ issue. It can also allow you to create a container, and anyone can run it on nearly any device with no care about the operating system. For all of the installations we will be using a package manager.

Windows Installation

There are many ways to install docker on Windows, but we will be using Chocolatey, a package manager for Windows. If you dont have it, please install it by following the steps outlined here 

In an administrator powershell console, run the command.There may be a confirmation request in the console, confirm it or the install will halt.

choco install docker-desktop

Alternatively follow the installation instructions from the Docker Desktop Homepage

MacOS Installation

We are gonna be using Homebrew for this, so install it if you haven't already. All you need to do is run the following command in your terminal if you have homebrew installed.

brew install --cask docker

Alternatively follow the installation instructions from the Docker Desktop Homepage

Running the Docker Desktop

For Windows and MacOS you need to run the Docker Desktop application that was installed to your local computer during the above steps. You need to do this to start the docker engine. Go through the recommended setup options (there is no need to create an account right now, skip where you can)

Verify your Install

In order to verify your install, run the command docker run hello-world if you get an error message, you have not properly installed docker.

Note: You will most likely need to restart your CLI in order to use the command after installation.