From c02db5a8f6164e41f9f4b520b4414bdd7286f099 Mon Sep 17 00:00:00 2001 From: zmaplex Date: Fri, 10 Jul 2020 22:27:04 +0800 Subject: [PATCH] Update README-docker.md (#205) --- README-docker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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