diff --git a/README-docker.md b/README-docker.md index fd592b0..0c85770 100644 --- a/README-docker.md +++ b/README-docker.md @@ -5,7 +5,7 @@ This is a minimized image to run https://github.com/tindy2013/subconverter. For running this docker, simply use the following commands: ```bash # run the container detached, forward internal port 25500 to host port 25500 -docker run -d -p 25500:25500 tindy2013/subconverter:latest +docker run -d --restart=always -p 25500:25500 tindy2013/subconverter:latest # then check its status curl http://localhost:25500 # if you see `subconverter vx.x.x backend` then the container is up and running @@ -35,7 +35,7 @@ Save the content above to a `Dockerfile`, then run: # build with this Dockerfile and tag it subconverter-custom docker build -t subconverter-custom:latest . # run the docker detached, forward internal port 25500 to host port 25500 -docker run -d -p 25500:25500 subconverter-custom:latest +docker run -d --restart=always -p 25500:25500 subconverter-custom:latest # then check its status curl http://localhost:25500 # if you see `subconverter vx.x.x backend` then the container is up and running