Zum Inhalt springen

Docker Installation unter Debian Linux: Unterschied zwischen den Versionen

Aus LHlab Wiki
KKeine Bearbeitungszusammenfassung
K Textersetzung - „<source“ durch „<syntaxhighlight“
Zeile 4: Zeile 4:


*https://docs.docker.com/install/
*https://docs.docker.com/install/
<source lang="bash">
<syntaxhighlight lang="bash">
apt-get install curl apt-transport-https ca-certificates gnupg2 software-properties-common -y
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 -
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
Zeile 12: Zeile 12:
</source>
</source>
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:
<source lang="bash">
<syntaxhighlight lang="bash">
docker run hello-world
docker run hello-world
</source>
</source>

Version vom 1. Januar 2021, 21:19 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:

<syntaxhighlight lang="bash"> 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 </source> wenn alles geklappt hat sollte man nun mit dem folgenden Befehl eine Docker Begrüßung ausgegeben bekommen: <syntaxhighlight lang="bash"> docker run hello-world </source>

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: