raspbian.sh hinzugefügt
This commit is contained in:
parent
1e5a68d4cb
commit
b3af4cad65
33
raspbian.sh
Normal file
33
raspbian.sh
Normal file
@ -0,0 +1,33 @@
|
||||
#!/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
|
||||
|
||||
# Installiere pip (Python Paketmanager)
|
||||
sudo apt install -y python3-pip
|
||||
|
||||
# Installiere Docker Compose mit pip
|
||||
sudo pip3 install docker-compose
|
||||
|
||||
# Zeige installierte Versionen
|
||||
docker --version
|
||||
docker-compose --version
|
||||
|
||||
echo "Docker und Docker Compose wurden erfolgreich installiert."
|
Loading…
Reference in New Issue
Block a user