Skip to content

Instantly share code, notes, and snippets.

View FarshadGhanbari's full-sized avatar
💭
I may be slow to respond.

Farshad Ghanbari FarshadGhanbari

💭
I may be slow to respond.
View GitHub Profile
@FarshadGhanbari
FarshadGhanbari / install-docker.sh
Last active June 7, 2026 06:59
Install Docker using an Iran mirror. Deploy the server on the intranet using an Iran mirror. 🚀
#!/bin/bash
set -euo pipefail
echo "=== Step 0: Repo setup ==="
bash <(curl -fsSL http://mirror.mihanwebhost.com/auto-repo-config.sh 2>/dev/null || wget -qO- http://mirror.mihanwebhost.com/auto-repo-config.sh 2>/dev/null) || true
INSTALL_DIR="$HOME/docker-install"
echo "=== Step 1: Install dependencies ==="
sudo apt update