Docker Installation unter Debian Linux: Unterschied zwischen den Versionen
Erscheinungsbild
K Textersetzung - „<source“ durch „<syntaxhighlight“ |
K Textersetzung - „</source>“ durch „</syntaxhighlight>“ |
||
| Zeile 10: | Zeile 10: | ||
apt-get update | apt-get update | ||
apt-get install docker-ce docker-ce-cli containerd.io -y | apt-get install docker-ce docker-ce-cli containerd.io -y | ||
</ | </syntaxhighlight> | ||
wenn alles geklappt hat sollte man nun mit dem folgenden Befehl eine Docker Begrüßung ausgegeben bekommen: | wenn alles geklappt hat sollte man nun mit dem folgenden Befehl eine Docker Begrüßung ausgegeben bekommen: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
docker run hello-world | docker run hello-world | ||
</ | </syntaxhighlight> | ||
<pre> | <pre> | ||
Hello from Docker! | Hello from Docker! | ||
Version vom 1. Januar 2021, 21:20 Uhr
Hier eine Kurze Anleitung wie man unter Debian 10 (Buster) Docker installiert.
Die ausführliche Anleitung zur Installation von Docker findet man auf der Docker Webseite:
apt-get install curl apt-transport-https ca-certificates gnupg2 software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io -y
wenn alles geklappt hat sollte man nun mit dem folgenden Befehl eine Docker Begrüßung ausgegeben bekommen:
docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
Memory Limits benutzen
Möchte man Container im RAM limitieren, hilft der Artikel weiter: