This content originally appeared on DEV Community and was authored by Yash Sonawane
“Youβve decided to board the Docker ship β now letβs make sure your machine is ready to sail. Donβt worry, this wonβt hurt. Iβve got snacks, screenshots, and sanity-saving tips.”
What Weβll Do in This Episode
By the end of this episode, youβll:
- Know how to install Docker on Windows, macOS, and Linux
- Run your first container (yes, already!)
- Troubleshoot common issues without breaking your screen
Installing Docker on Windows
Requirements
- Windows 10/11 (Pro, Enterprise, or Education) with WSL 2 enabled
- 4 GB+ RAM recommended
Steps
- Download Docker Desktop: https://www.docker.com/products/docker-desktop/
- Install and follow the prompts (it may ask for WSL 2 install β allow it)
- Reboot your system (seriously, donβt skip this)
Check it works:
docker --version
docker run hello-world
You should see: Hello from Docker!
Troubleshooting:
- Enable virtualization in BIOS
- Make sure WSL 2 is installed & default:
wsl --set-default-version 2
- Docker stuck on starting? Restart system + Docker Desktop
Installing Docker on macOS
Requirements
- macOS 11+ with Apple Silicon or Intel
- 4 GB+ RAM
Steps
- Download Docker Desktop for Mac: https://www.docker.com/products/docker-desktop/
- Drag & drop into Applications folder
- Launch Docker, accept permissions
Check it works:
docker --version
docker run hello-world
Installing Docker on Linux (Ubuntu/Debian)
Terminal Commands:
sudo apt update
sudo apt install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
Restart your system or log out/in.
Test It:
docker run hello-world
First Container = First Win
Letβs make it official. Run this command:
docker run hello-world
If you see:
Hello from Docker!
This message shows that your installation appears to be working correctly.
You, my friend, have just run your first Docker container.
What Just Happened?
That hello-world
container:
- Pulled an image from Docker Hub (like a recipe)
- Ran it in a container (like a tiny virtual kitchen)
- Displayed a success message
You didnβt install dependencies, configs, or anything messy.
Welcome to the clean world of containers!
Whatβs Next?
In Episode 3, weβll unpack:
- The difference between Docker images vs containers
- Docker Hub = GitHub for containers
- How it all works behind the scenes
Letβs Talk
Did your Docker installation go smoothly?
Drop a comment below if:
- You hit any error (Iβll help debug!)
- You successfully ran your first container (flex it
)
If this episode helped you:
Leave a , comment, or share it with a fellow learner.
Next: “Images vs Containers β Explained with Tiffin Boxes & Chai”
This content originally appeared on DEV Community and was authored by Yash Sonawane