Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:docker:apache_httpd_mit_docker [2026/05/30 16:59] ingo_wichmann [mit Konfigurationsdatei im Volume] |
admin_grundlagen:docker:apache_httpd_mit_docker [2026/06/02 09:39] (aktuell) peter_rossbach2 |
||
|---|---|---|---|
| Zeile 30: | Zeile 30: | ||
| )) | )) | ||
| docker container inspect -f '{{.Config.WorkingDir}}' hello-httpd | docker container inspect -f '{{.Config.WorkingDir}}' hello-httpd | ||
| + | |||
| + | Mounts herausfinden: | ||
| + | docker container inspect -f '{{ json .Mounts }}' hello-httpd | jq | ||
| + | | ||
| Betreten des Containers: | Betreten des Containers: | ||
| docker container exec -it hello-httpd /bin/bash | docker container exec -it hello-httpd /bin/bash | ||
| Zeile 59: | Zeile 63: | ||
| docker build -t='ingo/apache:0.0.1' . | docker build -t='ingo/apache:0.0.1' . | ||
| docker container run -d -P ingo/apache:0.0.1 | docker container run -d -P ingo/apache:0.0.1 | ||
| - | docker container ps | + | docker container ls |
| -> ''->8001/tcp'' | -> ''->8001/tcp'' | ||
| Zeile 88: | Zeile 92: | ||
| docker build -t='ingo/apache:0.0.1' . | docker build -t='ingo/apache:0.0.1' . | ||
| docker container run -d -P ingo/apache:0.0.1 | docker container run -d -P ingo/apache:0.0.1 | ||
| - | docker container ps | + | docker container ls |
| -> ''->8001/tcp'' | -> ''->8001/tcp'' | ||
| ++++ | ++++ | ||