Compare commits

..

No commits in common. "main" and "docker-auto-installer_v1.0" have entirely different histories.

7 changed files with 18 additions and 83 deletions

View File

@ -1,22 +1,16 @@
<img src="https://git.moelle.space/hxcde/docker-aio/raw/branch/main/dockeraio.png" width="350"/>
<br>
<br>
# Docker Auto Installer
Docker automatic install script for linux machines or containers.
Just run the commands in the console as root user.
> Docker all in one install script for linux machines or containers.<br>
> Just run the commands in the console as root user.<br>
> The Script installs docker and docker-compose
- Works on `Debian`,`Ubuntu`,`CentOS`,`Alpine`,`OpenSuse`, `Raspbian`
- You need to install curl on your system.
#### Paste the script in the machines console, thats all!
- Works on `Debian`,`Ubuntu`,`CentOS`,`Alpine`,`OpenSuse`
- You need to install curl and sudo on your system.
#### Paste the script in the machines console
```bash
sh -c "$(curl -L https://script.moelle.space/docker-aio)"
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/install.sh)"
```
<br>
<br>
<details>
<summary>Old, individual OS installation scripts </summary>
## Individual systems
### Alpine
@ -26,7 +20,7 @@ apk add curl
```
Then paste the script in the machines console
```bash
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/alpine.sh)"
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/alpine.sh)"
```
- I recommend using Alpine 3.15 and not 3.16. Alpine 3.16 creates OCI errors.
### Debian
@ -36,16 +30,7 @@ apt-get install curl sudo -y
```
Then paste the script in the machines console
```bash
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/debian.sh)"
```
### Raspbian
First install curl and sudo on the machine
```bash
apt-get install curl sudo -y
```
Then paste the script in the machines console
```bash
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/raspbian.sh)"
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/debian.sh)"
```
### Ubuntu
First install curl on the machine
@ -54,11 +39,10 @@ apt-get install curl -y
```
Then paste the script in the machines console
```bash
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/ubuntu.sh)"
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/ubuntu.sh)"
```
### CentOS
Paste the script in the machines console
```bash
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/centos.sh)"
```
</details>
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/centos.sh)"
```

9
ascii
View File

@ -1,9 +0,0 @@
.___ __ .__
__| _/____ ____ | | __ ___________ _____ |__| ____
/ __ |/ _ \_/ ___\| |/ // __ \_ __ \ ______ \__ \ | |/ _ \
/ /_/ ( <_> ) \___| <\ ___/| | \/ /_____/ / __ \| ( <_> )
\____ |\____/ \___ >__|_ \\___ >__| (____ /__|\____/
\/ \/ \/ \/ \/

View File

@ -1,5 +1,4 @@
echo installing Docker
apt-get install sudo
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release -y
sudo mkdir -p /etc/apt/keyrings

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

View File

@ -1,8 +1,5 @@
#!/bin/bash
# Docker-aio ascii
curl https://git.moelle.space/hxcde/docker-aio/raw/branch/main/ascii
# Check if script is being run as root
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root."
@ -18,9 +15,6 @@ if [ -f /etc/os-release ]; then
elif [ "$ID" = "opensuse" ]; then
echo "Detected openSUSE."
PACKAGE_MANAGER="zypper"
elif [ "$ID" = "raspbian" ]; then
echo "Detected Raspbian."
PACKAGE_MANAGER="apt-get-raspbian"
elif [ "$ID" = "debian" ]; then
echo "Detected Debian."
PACKAGE_MANAGER="apt-get"
@ -45,18 +39,16 @@ read -p "Do you want to install Docker? (y/n) " INSTALL_DOCKER
if [ "$INSTALL_DOCKER" = "y" ]; then
echo "Installing Docker ..."
if [ "$PACKAGE_MANAGER" = "apt-get" ]; then
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/debian.sh)"
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/debian.sh)"
elif [ "$PACKAGE_MANAGER" = "apt-get-ubuntu" ]; then
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/ubuntu.sh)"
elif [ "$PACKAGE_MANAGER" = "apt-get-raspbian" ]; then
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/raspbian.sh)"
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/ubuntu.sh)"
elif [ "$PACKAGE_MANAGER" = "zypper" ]; then
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/opensuse.sh)"
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/opensuse.sh)"
elif [ "$PACKAGE_MANAGER" = "apk" ]; then
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/alpine.sh)"
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/alpine.sh)"
elif [ "$PACKAGE_MANAGER" = "yum" ]; then
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/centos.sh)"
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/centos.sh)"
fi
fi
echo "Completed!"
echo "Docker and Docker Compose installation completed."

View File

@ -1,30 +0,0 @@
#!/bin/bash
# Aktualisiere das Paketsystem
sudo apt update
# Installiere Abhängigkeiten
sudo apt install -y apt-transport-https ca-certificates software-properties-common
# Füge Docker GPG-Schlüssel hinzu
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# Füge Docker Repository hinzu
echo "deb [arch=armhf] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Aktualisiere das Paketsystem erneut und installiere Docker
sudo apt update
sudo apt install -y docker-ce
# Aktiviere und starte den Docker Dienst
sudo systemctl enable docker
sudo systemctl start docker
# Installieren Docker Compose
sudo apt install -y docker-compose
# Zeige installierte Versionen
docker --version
docker-compose --version
echo "Docker und Docker Compose wurden erfolgreich installiert."

View File

@ -1,5 +1,4 @@
echo installing Docker
apt-get install sudo -y
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release -y
sudo mkdir -p /etc/apt/keyrings