🚀 Docker Setup
Docker is like that friend who shows up at every party, but instead of eating all your snacks, it brings neat little containers of apps to run anywhere. 🎁
🛠️ Prerequisites
Section titled “🛠️ Prerequisites”- Internet access (no, your neighbor’s Wi-Fi doesn’t count)
- A user with
sudo
privileges (aka, your inner superuser unleashed)
📦 Install Docker
Section titled “📦 Install Docker”-
Update your packages
sudo nala update && sudo nala upgrade -yBecause outdated packages are like expired milk. You could use them, but you’d regret it.
-
Install dependencies
sudo nala install ca-certificates curl gnupg lsb-release -y -
Add Docker’s GPG key
sudo mkdir -m 0755 -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg -
Set up Docker repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null -
Install Docker Engine
sudo nala install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y -
Enable and start Docker
sudo systemctl enable dockersudo systemctl start docker
✅ Test Docker
Section titled “✅ Test Docker”Run the classic “Hello World” container to make sure you didn’t accidentally summon a digital demon. 👻
docker run hello-world
If you see “Hello from Docker!”, congrats! You now have a mini shipyard running in your server, and you’re officially cooler than 99% of people who think containers only exist in shipping yards. ⚓🚢