Wednesday, March 12, 2025

🖥️ Installing Docker

 

Installing Docker

To start using Docker, you first need to install it on your system. Docker is available for Windows, macOS, and Linux. Below is a step-by-step guide to installing Docker on different platforms.


🌍 Shape Your Future with AI & Infinite Knowledge...!!

🌐 Want to Generate Text-to-Voice, Images & Videos? 👉 http://www.ai.skyinfinitetech.com 📚 Read In-Depth Tech & Self-Improvement Blogs 👉 http://www.skyinfinitetech.com ▶ Watch Life-Changing Videos on YouTube 👉 https://www.youtube.com/@SkyInfinite-Learning 🔥 Transform Your Skills, Business & Productivity – Join Us Today! 🔥



🔹 Installing Docker on Windows

1️⃣ Download Docker Desktop from the official Docker website.
2️⃣ Run the installer and follow the setup instructions.
3️⃣ Enable WSL 2 backend (recommended for better performance).
4️⃣ Restart your system after installation.
5️⃣ Verify installation by running:


docker --version


🔹 Installing Docker on macOS

1️⃣ Download Docker Desktop from the official Docker website.
2️⃣ Install the package by dragging it into the Applications folder.
3️⃣ Open Docker Desktop and complete the setup.
4️⃣ Verify installation by running:


docker --version


🔹 Installing Docker on Linux (Ubuntu/Debian)

1️⃣ Update the package list:


sudo apt update && sudo apt upgrade -y

2️⃣ Install dependencies:


sudo apt install -y apt-transport-https ca-certificates curl software-properties-common

3️⃣ Add Docker’s GPG key:


curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

4️⃣ Add Docker repository:


echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

5️⃣ Install Docker:


sudo apt update && sudo apt install -y docker-ce docker-ce-cli containerd.io

6️⃣ Verify installation:


docker --version


Post-Installation Steps

  • Ensure Docker starts on system boot:

    sudo systemctl enable docker
  • Add your user to the Docker group to run commands without sudo:

    sudo usermod -aG docker $USER
  • Restart your system for changes to take effect.

No comments:

Post a Comment

Terraform State Deep Dive: Why it's Crucial and How to Manage It

Terraform State Deep Dive: Why it's Crucial and How to Manage It ...