initial commit

This commit is contained in:
2026-03-18 03:29:25 +08:00
commit 146c2c5f35
37 changed files with 1445 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
echo "Installing Docker for Alpine..."
apk update
apk add \
docker \
docker-cli-compose

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
echo "Installing Docker for Arch-based systems..."
pacman -Sy --noconfirm docker docker-compose

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
echo "Installing Docker for Debian..."
apt-get update -y
apt-get install -y ca-certificates curl gnupg lsb-release
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://archive.ito.gov.ir/docker-ce/linux/debian/gpg \
-o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
https://archive.ito.gov.ir/docker-ce/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
| tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update -y
apt-get install -y \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
echo "Installing Docker for OpenSUSE..."
zypper refresh
zypper install -y \
docker \
docker-compose

16
scripts/docker/os/rhel.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
echo "Installing Docker for RHEL-based systems..."
dnf install -y dnf-plugins-core
dnf config-manager --add-repo \
https://archive.ito.gov.ir/docker-ce/linux/centos/docker-ce.repo
dnf install -y \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -e
echo "Installing Docker for Ubuntu..."
apt-get update -y
apt-get install -y ca-certificates curl gnupg lsb-release
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://archive.ito.gov.ir/docker-ce/linux/ubuntu/gpg \
-o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] \
https://archive.ito.gov.ir/docker-ce/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" \
| tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update -y
apt-get install -y \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin