Getting Started

../_images/docker-intro.gif

In this section you will install Docker.

If you already have the docker daemon installed on your machine you can skip this step.

Creating a Docker account

During this Hands-on lab you will work with many docker images, created by others. In order to be able to do that you need a docker account. If you already have one just continue with Installing Docker.

../_images/docker-create-account.png

Installing Docker

Three native ways of installing docker are provided and described.

Because not all configurations can be predicted the following installs are provided:

This does not mean that these are the only ones supported by Docker, but the only ones provided out of the box by this Hands-on Lab.

Just go to the Link docker website to find the correct installer.

Hint

If you are unsure if you already have docker installed, you can check it by opening a terminal and running docker --version. If installed the response should be something like: Docker version 20.10.22, build 3a2c30b

Podman install

An alternative for docker is podman. Podman is available for most platforms. Some companies do not allow docker anymore as it is licensed. For that reason Podman is a good alternative.

The main difference is that docker runs in daemon mode (always runs in the background) and podman starts a vm to run (daemonless)

Initialize podman
 podman machine init
 podman machine start
 podman login docker.io
  • the podman commands are 100% the same as docker so you can alias them so you can use the docker command while still using podman

alias on linux / macOs
alias docker=podman
alias on Powershell
Set-Alias -Name docker -Value podman
alias on Windows Command (cmd) prompt
doskey docker=podman

Colima install 4 Mac

../_images/colima.png

If you do not want to work with the docker desktop and want to use a more minimal setup, you can use teh opensource project Colima. Most everything in this Hands-on Lab should work with Colima as well, but is not tested. Proceed this way only if you have confidence in your Mac skills :-)

This does also circumvent the whole licensing issue with Docker Desktop.