Skip to content

Commit 41f84de

Browse files
committed
Remove container after use
[skip ci]
1 parent a37a494 commit 41f84de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pelican/Docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Running the image
2222

2323
$ cd <website checkout containing pelicanconf.py>
2424

25-
$ docker run -it -p8000:8000 -v $PWD:/site IMAGENAME
25+
$ docker run --rm -it -p8000:8000 -v $PWD:/site IMAGENAME
2626

2727
This will start the Docker container.
2828
The website files are mapped to /site.
@@ -36,7 +36,7 @@ Running the image interactively
3636

3737
$ cd WEBSITE # directory must contain pelicanconf.py
3838

39-
$ docker run -it -p8000:8000 -v $PWD:/site --entrypoint bash IMAGENAME
39+
$ docker run --rm -it -p8000:8000 -v $PWD:/site --entrypoint bash IMAGENAME
4040

4141
This will start a shell in the container.
4242
Use the `pelicanasf` wrapper command to run Pelican as it automatically adds

0 commit comments

Comments
 (0)