Add example

This commit is contained in:
Frank Woeckener
2025-03-27 15:40:31 +01:00
parent d6848f7bdd
commit 5588acf19c
2 changed files with 6 additions and 6 deletions

View File

@@ -91,7 +91,8 @@ docker pull username/mein-projekt:1.0
### Starten, Stoppen, Löschen ### Starten, Stoppen, Löschen
```bash ```bash
docker run -d --name web mein-projekt:1.0 docker run --name web mein-projekt:1.0
docker run -d -p 9000:9000 --name web mein-projekt:1.0
docker run -it --rm ubuntu bash docker run -it --rm ubuntu bash
docker stop web docker stop web
docker start web docker start web

View File

@@ -14,10 +14,9 @@ curl http://localhost:8080
**Lösung:** **Lösung:**
```bash ```bash
docker run -d --name php-test php:8.1-cli docker run -it --name php-test php:8.1-cli
docker exec -it php-test bash > phpinfo();
php -v > exit
exit
``` ```
## Übung 3: Einfaches Dockerfile erstellen ## Übung 3: Einfaches Dockerfile erstellen