Compare commits
64 Commits
docker-aut
...
main
Author | SHA1 | Date | |
---|---|---|---|
dde85093b6 | |||
f70eed569e | |||
fe95738f3d | |||
2fdf3070f8 | |||
e851f00b16 | |||
b3af4cad65 | |||
1e5a68d4cb | |||
91a198dd13 | |||
23a9777206 | |||
c07cf99d52 | |||
a557ab594a | |||
c287317038 | |||
c8d7299edb | |||
97e772f5a5 | |||
61604f0f31 | |||
a74e374144 | |||
3b47c6bd21 | |||
4e2bba3ffe | |||
430b8661ce | |||
752d1dcd32 | |||
7607cfea78 | |||
a379d34f08 | |||
2037a7de75 | |||
9dbb04f5fd | |||
8c6139bd6e | |||
3af8e7d1c9 | |||
06d22ec75f | |||
f4500fdf1d | |||
a052c8f88c | |||
82b9c73015 | |||
a378911563 | |||
a14366a58c | |||
b8a3eadd15 | |||
5ed959a795 | |||
9c1aef8897 | |||
372174d5bf | |||
030d9ee33a | |||
15fac49fc0 | |||
f2fe945461 | |||
b412af0cdb | |||
a602b109bf | |||
b3f8ea72f9 | |||
7f7c0ffb32 | |||
267ba0b515 | |||
0b92929420 | |||
c4f52f7790 | |||
c7128d2398 | |||
d529721870 | |||
d619a8f306 | |||
32666a7f1d | |||
5ef74deb70 | |||
92f03f1a5f | |||
3903341ca6 | |||
d7acd55e91 | |||
407fb13157 | |||
0de63f273a | |||
c47876fdf1 | |||
869eca0423 | |||
fa910ebf95 | |||
dc585c1c86 | |||
0a3da36d03 | |||
21347569d6 | |||
fc8435af95 | |||
01ae8df5dc |
40
README.md
40
README.md
@ -1,16 +1,22 @@
|
|||||||
# Docker Auto Installer
|
<img src="https://git.moelle.space/hxcde/docker-aio/raw/branch/main/dockeraio.png" width="350"/>
|
||||||
Docker automatic install script for linux machines or containers.
|
<br>
|
||||||
Just run the commands in the console as root user.
|
<br>
|
||||||
|
|
||||||
- Works on `Debian`,`Ubuntu`,`CentOS`,`Alpine`,`OpenSuse`
|
> Docker all in one install script for linux machines or containers.<br>
|
||||||
- You need to install curl and sudo on your system.
|
> Just run the commands in the console as root user.<br>
|
||||||
#### Paste the script in the machines console
|
> 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
|
```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>
|
||||||
<br>
|
<br>
|
||||||
|
<details>
|
||||||
|
<summary>Old, individual OS installation scripts </summary>
|
||||||
|
|
||||||
## Individual systems
|
## Individual systems
|
||||||
### Alpine
|
### Alpine
|
||||||
@ -20,7 +26,7 @@ apk add curl
|
|||||||
```
|
```
|
||||||
Then paste the script in the machines console
|
Then paste the script in the machines console
|
||||||
```bash
|
```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.
|
- I recommend using Alpine 3.15 and not 3.16. Alpine 3.16 creates OCI errors.
|
||||||
### Debian
|
### Debian
|
||||||
@ -30,7 +36,16 @@ apt-get install curl sudo -y
|
|||||||
```
|
```
|
||||||
Then paste the script in the machines console
|
Then paste the script in the machines console
|
||||||
```bash
|
```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
|
### Ubuntu
|
||||||
First install curl on the machine
|
First install curl on the machine
|
||||||
@ -39,10 +54,11 @@ apt-get install curl -y
|
|||||||
```
|
```
|
||||||
Then paste the script in the machines console
|
Then paste the script in the machines console
|
||||||
```bash
|
```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
|
### CentOS
|
||||||
Paste the script in the machines console
|
Paste the script in the machines console
|
||||||
```bash
|
```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
9
ascii
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
.___ __ .__
|
||||||
|
__| _/____ ____ | | __ ___________ _____ |__| ____
|
||||||
|
/ __ |/ _ \_/ ___\| |/ // __ \_ __ \ ______ \__ \ | |/ _ \
|
||||||
|
/ /_/ ( <_> ) \___| <\ ___/| | \/ /_____/ / __ \| ( <_> )
|
||||||
|
\____ |\____/ \___ >__|_ \\___ >__| (____ /__|\____/
|
||||||
|
\/ \/ \/ \/ \/
|
||||||
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
|||||||
echo installing Docker
|
echo installing Docker
|
||||||
|
apt-get install sudo
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ca-certificates curl gnupg lsb-release -y
|
sudo apt-get install ca-certificates curl gnupg lsb-release -y
|
||||||
sudo mkdir -p /etc/apt/keyrings
|
sudo mkdir -p /etc/apt/keyrings
|
||||||
|
BIN
dockeraio.png
Normal file
BIN
dockeraio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
20
install.sh
20
install.sh
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/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
|
# Check if script is being run as root
|
||||||
if [ "$(id -u)" -ne 0 ]; then
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
echo "This script must be run as root."
|
echo "This script must be run as root."
|
||||||
@ -15,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"
|
||||||
@ -39,16 +45,18 @@ read -p "Do you want to install Docker? (y/n) " INSTALL_DOCKER
|
|||||||
if [ "$INSTALL_DOCKER" = "y" ]; then
|
if [ "$INSTALL_DOCKER" = "y" ]; then
|
||||||
echo "Installing Docker ..."
|
echo "Installing Docker ..."
|
||||||
if [ "$PACKAGE_MANAGER" = "apt-get" ]; then
|
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
|
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
|
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
|
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
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Docker and Docker Compose installation completed."
|
echo "Completed!"
|
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."
|
@ -1,4 +1,5 @@
|
|||||||
echo installing Docker
|
echo installing Docker
|
||||||
|
apt-get install sudo -y
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ca-certificates curl gnupg lsb-release -y
|
sudo apt-get install ca-certificates curl gnupg lsb-release -y
|
||||||
sudo mkdir -p /etc/apt/keyrings
|
sudo mkdir -p /etc/apt/keyrings
|
||||||
|
Loading…
Reference in New Issue
Block a user