Docker: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Ubuntu) |
|||
(19 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
== Installation == | == Installation == | ||
=== Raspbian === | |||
Siehe dazu: [[Docker(Raspbian)#Installation|Docker (Raspbian)]] | |||
=== Ubuntu === | === Ubuntu === | ||
[https:// | Siehe dazu: [[Docker_(Linux)#Installation|Docker (Linux)]] | ||
== Hilfe == | |||
<pre> | |||
docker COMMAND --help | |||
</pre> | |||
== Container erstellen und ausführen == | |||
=== build === | |||
<pre> | |||
docker build -t <name>:<tag> | |||
</pre> | |||
=== run === | |||
Startet einen neuen Container | |||
<pre> | |||
docker run -i -t <image-name>:<tag> | |||
</pre> | |||
{| class="wikitable" | |||
! Argument !! Bedeutung | |||
|- | |||
| -i || interaktiver Modus | |||
|} | |||
=== Container auflisten === | |||
<pre> | |||
docker ps -a | |||
</pre> | |||
=== start === | |||
Startet einen gestoppten Container | |||
<pre> | |||
docker run -i --name <container-name> -t <image-name>:<tag> | |||
</pre> | |||
=== stop === | |||
<pre> | |||
docker stop <container-name> | |||
</pre> | |||
=== rename === | |||
<pre> | |||
docker rename my_container my_new_container | |||
</pre> | |||
=== remove === | |||
<pre> | |||
docker container rm <container-name> | |||
</pre> | |||
== Variablen == | |||
=== Links === | |||
[https://vsupalov.com/docker-arg-env-variable-guide/ https://vsupalov.com/docker-arg-env-variable-guide/] | |||
== Docker Compose == | |||
<pre> | |||
docker-compose up -d | |||
</pre> | |||
<pre> | |||
docker-compose restart | |||
</pre> | |||
<pre> | |||
docker-compose down | |||
</pre> | |||
== Volumes == | |||
=== Backup === | |||
==== Links ==== | |||
[https://docs.docker.com/storage/volumes/ https://docs.docker.com/storage/volumes/] | |||
== Projekte == | |||
[[Jenkins_(Docker)|Jenkins]] | |||
[[MediaWiki_in_Docker-Container|MediaWiki]] | |||
== Links == | == Links == | ||
[https://docs.docker.com/ https://docs.docker.com/] | [https://docs.docker.com/ https://docs.docker.com/] | ||
[https://hub.docker.com/ https://hub.docker.com/] | |||
Zurück zu [[Hauptseite#Untergruppen|Hauptseite]] | Zurück zu [[Hauptseite#Untergruppen|Hauptseite]] |
Aktuelle Version vom 27. August 2022, 13:09 Uhr
Noch in Bearbeitung
Download
https://docs.docker.com/get-docker/
Installation
Raspbian
Siehe dazu: Docker (Raspbian)
Ubuntu
Siehe dazu: Docker (Linux)
Hilfe
docker COMMAND --help
Container erstellen und ausführen
build
docker build -t <name>:<tag>
run
Startet einen neuen Container
docker run -i -t <image-name>:<tag>
Argument | Bedeutung |
---|---|
-i | interaktiver Modus |
Container auflisten
docker ps -a
start
Startet einen gestoppten Container
docker run -i --name <container-name> -t <image-name>:<tag>
stop
docker stop <container-name>
rename
docker rename my_container my_new_container
remove
docker container rm <container-name>
Variablen
Links
https://vsupalov.com/docker-arg-env-variable-guide/
Docker Compose
docker-compose up -d
docker-compose restart
docker-compose down
Volumes
Backup
Links
https://docs.docker.com/storage/volumes/
Projekte
Links
Zurück zu Hauptseite