docs: auto-remove container on stop with --rm
This commit is contained in:
1 parent
f932ecb060
commit
81271544c6
2 files changed
+2
-2
No files matched your search
@@ -67,7 +67,7 @@ Ou avec les commandes Docker :
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -t notes .
|
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.
|
L'app sera accessible sur http://localhost:8080.
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ L'image est servie par nginx et exposée sur le port 80.
|
|||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
```bash
|
```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.
|
Accédez ensuite à l'application sur http://localhost:8080.
|
||||||
|
|||||||
Reference in new issue
Block a user