Skip to content

Latest commit

 

History

History
119 lines (105 loc) · 3.42 KB

README.md

File metadata and controls

119 lines (105 loc) · 3.42 KB

Bash scripts for install docker (+compose) on linux

Build Status

This script also installs these packages:

  • git , curl , wget , nano , p7zip , sqlite3
✅ Debian 11 :

Run these commands for upgrade problem as root :

hwclock --hctosys
apt --yes install ntp
systemctl enable --now ntp
systemctl restart ntp
dpkg-reconfigure tzdata

🔷non-root recommended :

1️⃣ Create non-root sudo-enabled user via root first. (if there is no non-root user) :
# run these commands as root user :
# make sure sudo is installed
apt --yes install sudo

adduser production
usermod -aG sudo production
2️⃣ Install dockerhost via 'non-root' user :
sudo apt --yes install curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-debian-11-non-root.sh)

🔷root :

apt --yes install curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-debian-11-root.sh)
✅ Ubuntu 20+:

🔷non-root recommended :

1️⃣ Create non-root sudo-enabled user via root first. (if there is no non-root user) :
# run these commands as root user :
# make sure sudo is installed
apt --yes install sudo

adduser production
usermod -aG sudo production
2️⃣ Install dockerhost via 'non-root' user :
sudo apt --yes install curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-ubuntu-non-root.sh)

🔷root :

apt --yes install curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-ubuntu-root.sh)
✅ Rocky Linux 9 :

🔷non-root recommended :

1️⃣ Create non-root sudo-enabled user via root first. (if there is no non-root user) :
# run these commands as root user :
# make sure sudo is installed
yum install -y sudo

adduser production
passwd production
usermod -aG wheel production
2️⃣ Install dockerhost via 'non-root' user :
sudo yum install -y curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-rocky-9-non-root.sh)

🔷root :

yum install -y curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-rocky-9-root.sh)
✅ Rocky Linux 8 :

🔷non-root recommended :

1️⃣ Create non-root sudo-enabled user via root first. (if there is no non-root user) :
# run these commands as root user :
# make sure sudo is installed
yum install -y sudo

adduser production
passwd production
usermod -aG wheel production
2️⃣ Install dockerhost via 'non-root' user :
sudo yum install -y curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-rocky-8-non-root.sh)

🔷root :

yum install -y curl
bash <(curl -sSL https://github.com/ariadata/dockerhost-sh/raw/main/dockerhost-basic-rocky-8-root.sh)