Compare commits
6 Commits
docker-aut
...
docker-aio
Author | SHA1 | Date | |
---|---|---|---|
1e5a68d4cb | |||
91a198dd13 | |||
23a9777206 | |||
c07cf99d52 | |||
a557ab594a | |||
c287317038 |
15
README.md
15
README.md
@ -1,15 +1,16 @@
|
||||
<img src="https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/dockeraio.png" width="350"/>
|
||||
<img src="https://git.moelle.space/hxcde/docker-aio/raw/branch/main/dockeraio.png" width="350"/>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
> Docker all in one install script for linux machines or containers.<br>
|
||||
> Just run the commands in the console as root user.
|
||||
> 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`
|
||||
- You need to install curl on your system.
|
||||
#### Paste the script in the machines console, thats all!
|
||||
```bash
|
||||
sh -c "$(curl -L http://gitlink.moelle.space/docker-aio)"
|
||||
sh -c "$(curl -L https://script.moelle.space/docker-aio)"
|
||||
```
|
||||
|
||||
<br>
|
||||
@ -25,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
|
||||
@ -35,7 +36,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-auto-installer/raw/branch/main/debian.sh)"
|
||||
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-aio/raw/branch/main/debian.sh)"
|
||||
```
|
||||
### Ubuntu
|
||||
First install curl on the machine
|
||||
@ -44,11 +45,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>
|
12
install.sh
12
install.sh
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Docker-aio ascii
|
||||
curl https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/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
|
||||
@ -42,15 +42,15 @@ 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" = "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
|
||||
|
||||
|
Reference in New Issue
Block a user