Compare commits
6 Commits
docker-aio
...
main
Author | SHA1 | Date | |
---|---|---|---|
dde85093b6 | |||
f70eed569e | |||
fe95738f3d | |||
2fdf3070f8 | |||
e851f00b16 | |||
b3af4cad65 |
11
README.md
11
README.md
@ -6,7 +6,7 @@
|
|||||||
> Just run the commands in the console as root user.<br>
|
> Just run the commands in the console as root user.<br>
|
||||||
> The Script installs docker and docker-compose
|
> 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.
|
- You need to install curl on your system.
|
||||||
#### Paste the script in the machines console, thats all!
|
#### Paste the script in the machines console, thats all!
|
||||||
```bash
|
```bash
|
||||||
@ -38,6 +38,15 @@ Then paste the script in the machines console
|
|||||||
```bash
|
```bash
|
||||||
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-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
|
### Ubuntu
|
||||||
First install curl on the machine
|
First install curl on the machine
|
||||||
```bash
|
```bash
|
||||||
|
@ -18,6 +18,9 @@ if [ -f /etc/os-release ]; then
|
|||||||
elif [ "$ID" = "opensuse" ]; then
|
elif [ "$ID" = "opensuse" ]; then
|
||||||
echo "Detected openSUSE."
|
echo "Detected openSUSE."
|
||||||
PACKAGE_MANAGER="zypper"
|
PACKAGE_MANAGER="zypper"
|
||||||
|
elif [ "$ID" = "raspbian" ]; then
|
||||||
|
echo "Detected Raspbian."
|
||||||
|
PACKAGE_MANAGER="apt-get-raspbian"
|
||||||
elif [ "$ID" = "debian" ]; then
|
elif [ "$ID" = "debian" ]; then
|
||||||
echo "Detected Debian."
|
echo "Detected Debian."
|
||||||
PACKAGE_MANAGER="apt-get"
|
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)"
|
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/debian.sh)"
|
||||||
elif [ "$PACKAGE_MANAGER" = "apt-get-ubuntu" ]; then
|
elif [ "$PACKAGE_MANAGER" = "apt-get-ubuntu" ]; then
|
||||||
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-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
|
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-aio/raw/branch/main/opensuse.sh)"
|
||||||
elif [ "$PACKAGE_MANAGER" = "apk" ]; then
|
elif [ "$PACKAGE_MANAGER" = "apk" ]; then
|
||||||
|
30
raspbian.sh
Normal file
30
raspbian.sh
Normal 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."
|
Reference in New Issue
Block a user