Skip to content

Installing Docker

Now that we know why Docker matters in simulation workflows, let’s set it up on your system. Docker installation is straightforward — it provides native installers for Windows and macOS, making it easy to start building and running containers locally.

Once installed, you’ll be able to build, run, and manage containers directly from your terminal.

Step-1: Download Docker Desktop

The easiest way to install Docker is through Docker Desktop, which includes both Docker Engine and Docker Compose.

Go to the official Docker website: https://www.docker.com/products/docker-desktop

From there, download the version that matches your operating system:

  • Windows – “Docker Desktop for Windows”
  • macOS – “Docker Desktop for Mac”

alt text

Step-2: Installation on Different Systems

Windows (via WSL 2)

  1. Ensure that Windows Subsystem for Linux (WSL 2) is enabled. If you’ve already installed Ubuntu for your FEniCS setup, you’re ready to go.
  2. Download Docker Desktop for Windows from the official Docker website.
  3. Run the installer and keep the default settings.
  4. Once installed, open Docker Desktop — it will automatically detect your WSL 2 distributions (like Ubuntu).
  5. Verify that Docker is running — the whale icon in your system tray should be active, as shwon in the image below.
Docker Desktop running on macOS

To confirm the installation, open Command Prompt or any terminal app in your system and run:

bash
docker --version

Expected output:

Docker version 28.4.0, build d8eb465

If you see a version number, Docker is successfully installed and connected with WSL. alt text

macOS

  1. Download Docker Desktop for Mac from the same link above.
  2. Open the .dmg file and drag Docker into your Applications folder.
  3. Launch Docker Desktop — it will request permissions on the first launch.
  4. Once running, you’ll see the Docker whale icon in your status bar, as shown in the image above.

To verify the installation, open Terminal and run:

bash
docker --version

If you see a version number, Docker is installed correctly and ready to use.

Step-3: Verifying Docker Setup

To confirm that Docker is working correctly, run the following command:

bash
docker run hello-world

If the installation is successful, you’ll see this message in your terminal:

alt text

This test verifies that your Docker Engine, networking, and configuration are all functioning properly.

Summary

You now have Docker installed and running on your system. This sets the foundation for the next section — where we’ll explore how Docker containers and images work, and how we use them to run FEniCS and other scientific tools reproducibly.