How to Install Docker on Your PC: A Step-by-Step Guide for Self-Hosting
Self-hosting is one of the best ways to take back control of your digital life. Instead of relying on expensive, privacy-invasive subscription services, you can run professional-grade tools on your own hardware.
The "secret sauce" that makes this possible for almost anyone is Docker.
Docker allows you to run applications in "containers"—isolated environments that package everything a program needs to run. This means you don't have to worry about complex installations or breaking your system. If you see a tool on NoSubscription.org labeled as "Self-Hostable," Docker is usually the easiest way to get it running.
Here is how to get Docker installed on your computer, no matter which operating system you use.
1. Installing Docker on Windows
For Windows users, the best way to run Docker is through Docker Desktop.
Prerequisites:
- Windows 10 or 11 (64-bit).
- WSL 2 (Windows Subsystem for Linux) is highly recommended for the best performance.
Steps:
- Download: Go to the Docker Desktop for Windows page and download the installer.
- Install: Run the
.exefile. Ensure the "Use WSL 2 instead of Hyper-V" option is checked during installation. - Restart: You will likely need to restart your computer to finish the WSL 2 setup.
- Launch: Open Docker Desktop from your Start menu. Accept the terms of service.
- Verify:
docker --version
2. Installing Docker on Linux
Linux is the native home of Docker. While you can install it manually, the official Docker convenience script is the fastest and most reliable way to get it running on almost any distribution (Ubuntu, Debian, Fedora, CentOS, etc.).
Steps:
- Cleanup previous attempts (Optional): If you tried to install Docker before and it failed, clean up old repository files to avoid "Release file missing" errors:
sudo rm -f /etc/apt/sources.list.d/docker.list sudo apt update - Run the installation script:
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh - Wait for the process to finish: The script will automatically detect your distribution, add the correct repositories, and install Docker Engine. (Note: If you are on a derivative like Linux Mint, this script is much more reliable than manual configuration).
- Manage Docker as a non-root user (Recommended):
By default, Docker requires
sudo. To run it as your normal user:
(Note: You must log out and back in for this to take effect).sudo usermod -aG docker $USER - Verify:
docker --version
3. Installing Docker on macOS
Like Windows, macOS uses Docker Desktop to create a lightweight virtual machine that runs Linux containers.
Steps:
- Download: Visit the Docker Desktop for Mac page. Choose the correct version for your chip (Intel or Apple Silicon/M1/M2/M3).
- Install: Open the
.dmgfile and drag the Docker icon to yourApplicationsfolder. - Launch: Open Docker from your Applications. It will ask for your system password to install networking components.
- Verify:
docker --version
Why Install Docker?
Once you have Docker installed, the world of self-hosting opens up to you. At NoSubscription.org, we curate a list of incredible software that respects your privacy and your wallet.
Many of the tools we feature—like Nextcloud for file storage, Pi-hole for ad-blocking, or Gitea for code hosting—can be launched with a single command if you have Docker and Docker Compose ready.
Next Steps:
- Browse our Open Source tools to find your first project.
- Look for the
docker-compose.ymlinstructions usually provided by the developers. - Enjoy software that you truly own!
Self-hosting might seem intimidating at first, but with Docker, it's as simple as "Copy, Paste, Run." Happy hosting!