Docker for Beginners: Installing Docker

Docker for Beginners: Installing Docker

🐧 Installing Docker on Linux

If you're on Linux, Docker can be installed using your distro’s package manager. Here’s how to do it on a Debian-based system like Ubuntu:

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Make sure your user is added to the docker group so you don’t need sudo every time:

sudo usermod -aG docker $USER

Then log out and log back in to apply the changes.


šŸ Installing Docker on macOS

For macOS users, the easiest path is to install Docker Desktop:

  1. Download it from Docker’s official site.
  2. Open the .dmg file and drag Docker to your Applications folder.
  3. Launch Docker — it’ll appear in your menu bar once running.

🪟 Installing Docker on Windows

Windows users can also use Docker Desktop:

  1. Download it from the official Docker website.
  2. Run the installer and follow the setup wizard.
  3. Make sure WSL 2 (Windows Subsystem for Linux v2) is enabled for the best experience. Docker Desktop will guide you through the process if it isn’t already set up.