Skip to content

Commit b14331e

Browse files
Have podman remove the container after 'jekyll serve' finishes
The '--rm' flag removes the container when it exits. If the intention of using containers is to create a more consistent development environment, explicitly removing the container between runs will help prevent inconsistencies due to a container's internal state. The image upon which the container is based is untouched by this flag.
1 parent 2537a5a commit b14331e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ clean:
55
$(RM) -r _site
66

77
rootless:
8-
podman run --interactive --tty --publish 4000:4000 --volume .:/srv/jekyll:Z --env JEKYLL_ROOTLESS=1 jekyll/jekyll:pages jekyll serve
8+
podman run --rm --interactive --tty --publish 4000:4000 --volume .:/srv/jekyll:Z --env JEKYLL_ROOTLESS=1 jekyll/jekyll:pages jekyll serve
99

1010
.PHONY: all clean rootless

0 commit comments

Comments
 (0)