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.ioMake sure your user is added to the docker group so you donāt need sudo every time:
sudo usermod -aG docker $USERThen 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:
- Download it from Dockerās official site.
- Open the
.dmgfile and drag Docker to your Applications folder. - Launch Docker ā itāll appear in your menu bar once running.
šŖ Installing Docker on Windows
Windows users can also use Docker Desktop:
- Download it from the official Docker website.
- Run the installer and follow the setup wizard.
- 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.