Skip to Content

Installing Docker on Any System

Installing Docker on Any System

Windows, macOS, and Linux — one guide for all platforms

Docker runs on all major operating systems. The installation process differs slightly between platforms, but the result is the same: a working Docker engine ready to run containers.

Linux — Native Installation

Linux is where Docker runs best — it uses the kernel directly with no virtualization overhead.

Ubuntu / Debian
sudo apt update
sudo apt install -y docker.io docker-compose-v2
sudo systemctl enable --now docker
sudo usermod -aG docker $USER

Log Out and Back In

After adding your user to the docker group, you need to log out and back in for the change to take effect. Then you can run docker commands without sudo.

macOS — Docker Desktop

1

Download Docker Desktop

Go to docker.com and download Docker Desktop for Mac. Choose the correct version for your chip — Apple Silicon (M1/M2/M3) or Intel.

2

Install the application

Open the downloaded .dmg file and drag Docker to Applications. Launch it from the Applications folder.

3

Verify installation

Open Terminal and run the verification commands below.

Windows — Docker Desktop with WSL2

1

Enable WSL2

Open PowerShell as Administrator and run: wsl --install. Restart your computer when prompted.

2

Download Docker Desktop

Go to docker.com and download Docker Desktop for Windows. Run the installer.

3

Configure WSL2 backend

In Docker Desktop settings, ensure the WSL2 backend is enabled. This gives much better performance than Hyper-V.

Verify Your Installation

Run on any platform
docker --version
docker compose version
docker run hello-world

Expected Output

The hello-world container will print a success message confirming Docker is installed and working correctly.

Firewall and Antivirus

On Windows, some antivirus software can interfere with Docker. If you see connection errors, check that Docker is allowed through your firewall.

Next Step

With Docker installed, you are ready to start working with containers. In the next section, we will set up a remote server where your Varyshop will actually run.

Kompletní instalační průvodce Dockerem pro Ubuntu/Debian Linux, macOS s Docker Desktop a Windows s Docker Desktop a WSL2.

Rating
0 0

There are no comments for now.

to be the first to leave a comment.