Compare commits

...

64 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
1e5a68d4cb „README.md“ ändern 2023-04-18 20:47:13 +02:00
91a198dd13 „README.md“ ändern 2023-04-18 20:46:42 +02:00
23a9777206 „install.sh“ ändern 2023-04-18 20:45:57 +02:00
c07cf99d52 „README.md“ ändern 2023-04-18 15:39:54 +02:00
a557ab594a „README.md“ ändern 2023-04-18 15:25:18 +02:00
c287317038 „README.md“ ändern 2023-04-18 15:24:59 +02:00
c8d7299edb „README.md“ ändern 2023-04-18 15:20:34 +02:00
97e772f5a5 „README.md“ ändern 2023-04-18 15:18:31 +02:00
61604f0f31 „README.md“ ändern 2023-04-18 15:18:23 +02:00
a74e374144 „README.md“ ändern 2023-04-18 15:17:33 +02:00
3b47c6bd21 „README.md“ ändern 2023-04-18 15:17:05 +02:00
4e2bba3ffe „README.md“ ändern 2023-04-18 15:16:57 +02:00
430b8661ce „README.md“ ändern 2023-04-18 15:16:20 +02:00
752d1dcd32 „README.md“ ändern 2023-04-18 15:16:11 +02:00
7607cfea78 „README.md“ ändern 2023-04-18 15:16:00 +02:00
a379d34f08 „README.md“ ändern 2023-04-18 15:15:54 +02:00
2037a7de75 „README.md“ ändern 2023-04-18 15:15:41 +02:00
9dbb04f5fd „README.md“ ändern 2023-04-18 15:15:30 +02:00
8c6139bd6e „README.md“ ändern 2023-04-18 15:15:16 +02:00
3af8e7d1c9 „README.md“ ändern 2023-04-18 15:14:31 +02:00
06d22ec75f „README.md“ ändern 2023-04-18 15:14:07 +02:00
f4500fdf1d „README.md“ ändern 2023-04-18 15:13:43 +02:00
a052c8f88c „README.md“ ändern 2023-04-18 15:13:37 +02:00
82b9c73015 „README.md“ ändern 2023-04-18 15:13:21 +02:00
a378911563 „README.md“ ändern 2023-04-18 15:12:58 +02:00
a14366a58c „README.md“ ändern 2023-04-18 15:12:47 +02:00
b8a3eadd15 „README.md“ ändern 2023-04-18 15:12:31 +02:00
5ed959a795 „README.md“ ändern 2023-04-18 15:11:55 +02:00
9c1aef8897 „README.md“ ändern 2023-04-18 15:11:35 +02:00
372174d5bf „README.md“ ändern 2023-04-18 15:11:11 +02:00
030d9ee33a „README.md“ ändern 2023-04-18 15:10:56 +02:00
15fac49fc0 „README.md“ ändern 2023-04-18 15:10:27 +02:00
f2fe945461 „README.md“ ändern 2023-04-18 15:04:48 +02:00
b412af0cdb „README.md“ ändern 2023-04-18 15:04:41 +02:00
a602b109bf Dateien hochladen nach „“ 2023-04-18 15:04:21 +02:00
b3f8ea72f9 „README.md“ ändern 2023-04-18 15:01:37 +02:00
7f7c0ffb32 „README.md“ ändern 2023-04-18 15:01:29 +02:00
267ba0b515 „README.md“ ändern 2023-04-18 15:01:20 +02:00
0b92929420 „README.md“ ändern 2023-04-18 15:01:14 +02:00
c4f52f7790 „README.md“ ändern 2023-04-18 15:00:55 +02:00
c7128d2398 Dateien hochladen nach „“ 2023-04-18 14:59:42 +02:00
d529721870 „README.md“ ändern 2023-04-18 14:55:57 +02:00
d619a8f306 „README.md“ ändern 2023-04-18 14:55:47 +02:00
32666a7f1d „README.md“ ändern 2023-04-18 14:53:13 +02:00
5ef74deb70 „README.md“ ändern 2023-04-18 14:52:56 +02:00
92f03f1a5f „ascii“ ändern 2023-04-18 14:50:01 +02:00
3903341ca6 „ascii“ ändern 2023-04-18 14:49:35 +02:00
d7acd55e91 „install.sh“ ändern 2023-04-18 14:49:23 +02:00
407fb13157 „ascii“ hinzufügen 2023-04-18 14:48:09 +02:00
0de63f273a „README.md“ ändern 2023-04-18 14:47:47 +02:00
c47876fdf1 „README.md“ ändern 2023-04-18 14:47:38 +02:00
869eca0423 „install.sh“ ändern 2023-04-18 14:45:25 +02:00
fa910ebf95 „README.md“ ändern 2023-04-18 14:14:46 +02:00
dc585c1c86 „README.md“ ändern 2023-04-18 12:44:54 +02:00
0a3da36d03 „README.md“ ändern 2023-04-18 12:26:50 +02:00
21347569d6 „README.md“ ändern 2023-04-17 21:32:22 +02:00
fc8435af95 „debian.sh“ ändern 2023-04-17 21:32:01 +02:00
01ae8df5dc „ubuntu.sh“ ändern 2023-04-17 21:31:35 +02:00
7 changed files with 83 additions and 18 deletions

View File

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

9
ascii Normal file
View File

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

View File

@ -1,4 +1,5 @@
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

BIN
dockeraio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -1,5 +1,8 @@
#!/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."
@ -15,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"
@ -39,16 +45,18 @@ 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-auto-installer/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
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/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
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/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
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/alpine.sh)"
sh -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/alpine.sh)"
elif [ "$PACKAGE_MANAGER" = "yum" ]; then
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/centos.sh)"
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/centos.sh)"
fi
fi
echo "Docker and Docker Compose installation completed."
echo "Completed!"

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."

View File

@ -1,4 +1,5 @@
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