Part 1: Set up

Installing Docker

First, we are going to install Docker.

  • On macOS, install Docker Desktop.
  • On Linux, install Docker Engine.
  • On Windows, install Docker Desktop, and in its Settings > Resources > WSL Integration turn on the integration with the WSL distribution you work in.

Configuring Docker Desktop

As Educates will configure a KinD cluster according to our needs, there's a few things we need to adjust in Docker Desktop, the underlying runtime:

Open Docker Desktop, navigate to the Settings page by clicking the ⚙️ icon in the top-right corner, and make sure the [Advanced] settings look like this.

Docker Desktop settings page

Configuring Docker Engine

Docker engine should work out of the box without any configuration change.

Testing Docker

To test if the installation and tweaking of Docker Desktop has been successful, spin up a terminal and run the following command:

Testing the Docker setup
docker run --rm -p 80:80 hello-world

The output should look like this:

Output
docker run --rm -p 80:80 hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm64v8)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
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/
For more examples and ideas, visit:
https://docs.docker.com/get-started/

Edit this page on GitHub