Docker Set Up

Instructions on installing and setting up Docker

1 Install Docker

Ensure that you install Docker or Docker Desktop before the course starts. If you do not have admin rights to install software on your laptop, talk to your local IT for help.

1.1 Linux

Follow the installation instructions for your OS:

After Docker Desktop starts, open the Dashboard and go to Settings ( in the top-right) > General. Follow the instructions in the General section.

1.2 Mac

Visit this page to ensure you have the requirements necessary.

Download Docker Desktop for Mac with Apple Silicon or Intel Chip and follow the installation instructions.

After Docker Desktop starts, open the Dashboard and go to Settings ( in the top-right) > General. Follow the instructions in the General section.

Important

On Mac M1/M2/M3, in Docker Settings > General, check Use Rosetta for x86/amd64 emulation on Apple Silicon.

1.3 Windows

Visit this page to ensure you have the requirements necessary.

Download Docker Desktop for Windows and follow the installation instructions.

After Docker Desktop starts, open the Dashboard and go to Settings ( in the top-right) > General. Follow the instructions in the General section.

After installation, open a PowerShell terminal and try to run docker --version. If that works, Docker is set up.

2 Test installation

From the terminal, type:

docker --version

and then run your first image by typing:

docker run hello-world

If both work as expected, you successfully installed Docker Desktop!

3 Allocate resources

Open the Docker Dashboard when Docker Desktop starts and go to Settings ( in the top-right) > Resources to allocate the following resources:

  • CPU limit: 8
  • Memory limit: 12 GB
  • Swap: 2 GB

On Windows, if WSL engine is used, you might not be able to change resources directly.