[host[:port]/][namespace/]repository[:tag][@digest] https://docs.docker.com/reference/cli/docker/image/tag/ admin_grundlagen:docker:hello_world
Inhaltsverzeichnis
erster Docker Container
erste Docker Instanz starten:
docker run --rm hello-world
oder 1)
docker container run docker --rm docker.io/library/hello-world:latest
Image anzeigen:
docker image list
→ REPOSITORY TAG IMAGE ID CREATED SIZE
→ hello-world latest e2ac70e7319a 8 weeks ago 10.1kB
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 --rm -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:
admin_grundlagen/docker/hello_world.txt · Zuletzt geändert: 2026/09/20 11:45 von ingo_wichmann
