Docker Installation
Docker Installation
Installing Docker
References
Background
Docker has a number of components that work in tandem to bring you a standardized way of working with
containerization technology.
Docker Engine:
Docker Deamon
APIs that allow for interaction with the deamon -- importantly the CLI(Command Line Interface)
Docker Desktop is the manner through which you install the Docker Engine on Windows and Mac OS -- it
includes:
Determine the OS and continue with the installation steps for that environment:
Windows:
o Type Windows Key + R
o Then run the command winver
o Make a note of Home or Pro OS as well as the version and build.
o If you are on Windows 10 Home version 2004 build 19041 or later, then see Docker Installation
for Windows Home.
Mac:
o Instructions for checking the OS version are here.
o If you are using hardware from 2010 or later and version 15.13 or later (Catalina, Mojave, or
High Sierra) see Docker Installation for Mac.
COMMENTS
- should focus on installation on Windows10 20H1 with WSL2
- should focus on installation on macOS 10.15 Catalina
- add the basic setup for each environment using either command line or
user interface
Installation
In order to check for this go to the task manager and click over to the performance tab. You should see the
section Virtualization and it should say enabled.
If the task manager page says that virtualization is disabled, then go to your BIOS menu to enable virtualization.
This will look slightly different depending on your hardware, but you can access the BIOS menu through the
instructions in this link.
If you have a hard time finding out how to enable virtualization from the BIOS menu, then you may need to do a
google search of your manufacturer and the phrase "enable virtualization" to locate additional hardware specific
instructions.
Note: Docker Desktop allows Windows users to use either Windows Containers (on a Windows OS) or via Hyper-
V and virtualization creating Linux containers via a Windows Subsystem for Linux.
Now you'll need to enable WSL 2. (The second version of Windows Subsystem for Linux.) (Remember your build
has to be later than 19041.)
Then run.
Finally you should be all set to download the installer for Docker from here.
Once the download completes, double click on the installer (the .exe file you just downloaded.) This will begin
running the installer.
Then follow the defaults and eventually select close to complete the installation process.
Now you must start up Docker Desktop. Go to Docker Desktop and select run.
Once the icon in the status bar is no longer changing, then you are ready to use docker. (It will look like the
following image.)
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:
https://hub.docker.com/
Note: You must be working with a Mac newer than 2010 and your operating system must be one of the most
recent three versions.
Then double click on the Docker.dmg file you just downloaded to open the installer.
You should see the little whale icon popup in the status bar and the on-boarding tutorial should begin.
Additionally, to test docker instead of or in addition to you can open up Terminal and run the following command.
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:
https://hub.docker.com/
Alternate instructions