A comprehensive guide for installing Docker on macOS, Linux, and Windows with simple, quick commands.
- Overview
- Quick Installation
- Platform-Specific Guides
- Verification
- Next Steps: Install n8n
- Troubleshooting
- Additional Resources
Docker is a platform for developing, shipping, and running applications using containerization. This repository provides simple, step-by-step installation instructions for Docker on different operating systems.
π‘ After installing Docker, check out our n8n setup guide to automate workflows and tasks with ease!
# Using Homebrew (Recommended)
brew install --cask docker
# Or download from Docker Desktop website
open https://www.docker.com/products/docker-desktop# Quick install script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.shDownload and install Docker Desktop from: https://www.docker.com/products/docker-desktop
For detailed instructions, see the platform-specific guides below.
# Install Docker Desktop
brew install --cask docker
# Start Docker Desktop
open -a Docker- Download Docker Desktop for Mac from docker.com
- Open the downloaded
.dmgfile - Drag Docker to Applications folder
- Launch Docker from Applications
- Follow the setup wizard
# Add your user to docker group (if needed)
sudo dscl . -append /Groups/docker GroupMembership $(whoami)
# Verify installation
docker --version
docker run hello-worldQuick Install (Recommended)
# Download and run Docker installation script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Add your user to docker group
sudo usermod -aG docker $USER
# Log out and log back in for group changes to take effectManual Install
# Update package index
sudo apt-get update
# Install prerequisites
sudo apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release
# Add Docker's official GPG key
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Set up repository
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
# Install Docker Engine
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Add user to docker group
sudo usermod -aG docker $USERQuick Install
# Download and run Docker installation script
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Add user to docker group
sudo usermod -aG docker $USERManual Install (Fedora)
# Install Docker
sudo dnf install -y docker docker-compose
# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Add user to docker group
sudo usermod -aG docker $USER# Install Docker
sudo pacman -S docker docker-compose
# Start Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Add user to docker group
sudo usermod -aG docker $USER- Windows 10 64-bit: Pro, Enterprise, or Education (Build 15063 or later)
- Windows 11 64-bit: Home or Pro version 21H2 or higher
- WSL 2 feature enabled
- Virtualization enabled in BIOS
-
Enable WSL 2
# Run PowerShell as Administrator wsl --install
-
Download Docker Desktop
- Visit: https://www.docker.com/products/docker-desktop
- Download Docker Desktop for Windows
-
Install Docker Desktop
- Run the installer
- Follow the installation wizard
- Restart your computer when prompted
-
Launch Docker Desktop
- Start Docker Desktop from Start menu
- Accept the terms of service
- Complete the setup wizard
# Verify installation
docker --version
docker run hello-worldAfter installation, verify Docker is working correctly:
# Check Docker version
docker --version
# Check Docker Compose version
docker compose version
# Run test container
docker run hello-world
# Check Docker daemon status
docker infoNow that Docker is installed, you can easily set up n8n - a powerful workflow automation tool!
n8n is a free and open-source workflow automation tool that allows you to:
- π€ Automate tasks and workflows
- π Connect different services and APIs
- π Schedule automated jobs
- π Create complex automation workflows
- πΌ Perfect for LinkedIn automation, data processing, and more!
Ready to automate? Check out our comprehensive n8n setup guide:
π n8n Free Setup Repository
# Clone the n8n repository
git clone https://github.com/ali-m07/n8n.git
cd n8n
# Start n8n with Docker Compose (super easy!)
docker-compose up -d
# That's it! π n8n is now running on http://localhost:13000Default credentials:
- Username:
admin - Password:
changeme
- β Complete Docker setup - One command to run everything
- β Free hosting options - n8n Cloud, Oracle Cloud, and more
- β LinkedIn automation guides - Step-by-step tutorials
- β Multiple deployment methods - Choose what works best for you
- β Production-ready configuration - Secure and optimized
- π 100% Free - Open source with free cloud tier available
- π Easy Setup - Works perfectly with Docker
- π 1000+ Integrations - Connect to almost any service
- π Visual Workflow Builder - No coding required
- β‘ Powerful Automation - Handle complex workflows easily
Perfect for:
- Social media automation (LinkedIn, Twitter, etc.)
- Data processing and ETL workflows
- API integrations
- Scheduled tasks and notifications
- Business process automation
- Docker Desktop won't start: Check System Preferences > Security & Privacy
- Permission denied: Ensure Docker Desktop is running and your user has permissions
- Permission denied: Add your user to docker group and log out/in:
sudo usermod -aG docker $USER newgrp docker - Docker daemon not running: Start the service:
sudo systemctl start docker sudo systemctl enable docker
- WSL 2 not found: Install WSL 2:
wsl --install - Virtualization disabled: Enable virtualization in BIOS settings
- Docker Desktop won't start: Check Windows features and ensure WSL 2 is enabled
Ali Mansouri
For consultation and service setup inquiries, please feel free to contact:
- π§ Email: ali.mansouri1998@gmail.com
- π§ Email: a.mansouri@khu.ac.ir
- πΌ LinkedIn: Ali Mansouri
This guide is provided as-is for educational purposes.
Contributions are welcome! Please feel free to submit a Pull Request.