Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:docker:hello_world

erster Docker Container

erste Docker Instanz starten:

docker run hello-world

oder 1)

docker container run docker.io/library/hello-world:latest

Image anzeigen:

docker image list
docker image inspect hello-world

Ubuntu Container

„offiziellen“ Ubuntu Container suchen:

docker search --filter=is-official=true ubuntu

→ weitere Images siehe https://hub.docker.com

Ubuntu im Terminal starten:

docker container run -it ubuntu bash

erste Befehle in Docker ausführen

sort mit Ubuntu im Container:

docker container run -i --rm ubuntu sort < /etc/passwd

sort mit Alpine im Container:

docker container run -i --rm alpine sort < /etc/passwd
1)
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/
admin_grundlagen/docker/hello_world.txt · Zuletzt geändert: 2026/05/03 21:48 von ingo_wichmann