From 81271544c650294e2a0380f35af9819439f240a8 Mon Sep 17 00:00:00 2001 From: gilles Date: Sun, 13 Sep 2026 21:08:06 +0200 Subject: [PATCH] docs: auto-remove container on stop with --rm --- README.md | 2 +- dockerhub-overview.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09db1eb..bcf1bd6 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Ou avec les commandes Docker : ```bash docker build -t notes . -docker run -d --name notes -p 8080:80 notes +docker run -d --rm --name notes -p 8080:80 notes ``` L'app sera accessible sur http://localhost:8080. diff --git a/dockerhub-overview.md b/dockerhub-overview.md index 8c1e5cd..a2e862a 100644 --- a/dockerhub-overview.md +++ b/dockerhub-overview.md @@ -18,7 +18,7 @@ L'image est servie par nginx et exposée sur le port 80. ### Docker ```bash -docker run -d --name notes -p 8080:80 devcodetools/notes:latest +docker run -d --rm --name notes -p 8080:80 devcodetools/notes:latest ``` Accédez ensuite à l'application sur http://localhost:8080.