Docker & Docker Compose v2

Docker & Docker Compose v2

Du brauchst eine funktionierende Installation von Docker und Docker Compose. Keine Sorge, die Installation ist einfach.

Hier ist der One-Line-Befehl, um Docker auf deinem Server zu installieren:


curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh

Falls curl fehlt, dann instalieren wir es so.


apt install curl

5.1 Docker testen

Lass uns mal testen ob Docker ordentlich installiert wurde


docker run hello-world

Der Befehl sollte so oder so ähnlich dann in der Konsole aussehen.


test@ubuntu-server:~# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1ec31eb5944: Pull complete
Digest: sha256:5b3cc85e16e3058003c13b7821318369dad01dac3dbb877aac3c28182255c724
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

Shizl (André)

Youtuber
Narnia