6 Commits

Author SHA1 Message Date
dde85093b6 README.md aktualisiert 2023-10-13 08:58:11 +02:00
f70eed569e README.md aktualisiert 2023-10-13 08:56:57 +02:00
fe95738f3d install.sh aktualisiert 2023-10-13 08:55:59 +02:00
2fdf3070f8 raspbian.sh aktualisiert 2023-10-13 08:48:17 +02:00
e851f00b16 README.md aktualisiert 2023-10-12 19:00:13 +02:00
b3af4cad65 raspbian.sh hinzugefügt 2023-10-12 18:58:26 +02:00
3 changed files with 45 additions and 1 deletions

View File

@ -6,7 +6,7 @@
> 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`
- 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!
```bash
@ -38,6 +38,15 @@ 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)"
```
### Ubuntu
First install curl on the machine
```bash

View File

@ -18,6 +18,9 @@ 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,6 +48,8 @@ if [ "$INSTALL_DOCKER" = "y" ]; then
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/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)"
elif [ "$PACKAGE_MANAGER" = "zypper" ]; then
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/opensuse.sh)"
elif [ "$PACKAGE_MANAGER" = "apk" ]; then

30
raspbian.sh Normal file
View File

@ -0,0 +1,30 @@
#!/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."