Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:docker:hello_world [2026/03/24 09:29] ingo_wichmann [erster Docker Container] |
admin_grundlagen:docker:hello_world [2026/05/22 19:17] (aktuell) ingo_wichmann [erster Docker Container] |
||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| erste Docker Instanz starten: | erste Docker Instanz starten: | ||
| docker run hello-world | docker run hello-world | ||
| - | oder | + | oder (( A string that is used to identify an image is called an image reference. An image reference has these parts: ''[host[:port]/][namespace/]repository[:tag][@digest]'' https://docs.docker.com/reference/cli/docker/image/tag/ )) |
| docker container run docker.io/library/hello-world:latest | docker container run docker.io/library/hello-world:latest | ||
| - | |||
| - | A string that is used to identify an image is called an image reference. An image reference has these parts: ''[host[:port]/][namespace/]repository[:tag][@digest]'' (( https://docs.docker.com/reference/cli/docker/image/tag/ )) | ||
| Image anzeigen: | Image anzeigen: | ||
| docker image list | docker image list | ||
| - | docker image inspect hello-world | + | -> ''REPOSITORY TAG IMAGE ID CREATED SIZE'' |
| + | -> ''hello-world latest e2ac70e7319a 8 weeks ago 10.1kB'' | ||
| + | ++++ podman | | ||
| + | -> ''quay.io/podman/hello latest 5dd467fce50b 24 months ago 787 kB'' | ||
| + | ++++ | ||
| + | docker image inspect hello-world | ||
| + | ++++ podman | | ||
| + | podman image inspect docker.io/library/hello-world | ||
| + | ++++ | ||
| ====== Ubuntu Container ===== | ====== Ubuntu Container ===== | ||
| - | docker container run -it ubuntu bash | + | "offiziellen" Ubuntu Container suchen: |
| + | docker search --filter=is-official=true ubuntu | ||
| -> weitere Images siehe https://hub.docker.com | -> weitere Images siehe https://hub.docker.com | ||
| + | |||
| + | Ubuntu im Terminal starten: | ||
| + | docker container run -it ubuntu bash | ||
| ====== erste Befehle in Docker ausführen ====== | ====== erste Befehle in Docker ausführen ====== | ||