From c0237886ee76994209fff789a70b2c17df544f65 Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Sat, 9 May 2026 22:50:09 +0200 Subject: [PATCH] fix: update Docker run command to include restart policy and clarify container behavior --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bc110b..ed590be 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,11 @@ Use the included `Dockerfile` to build and run the server in a Docker container: ```bash docker build -t ok-server . -docker run --rm -d --name ok-server --cpus=1 --memory=256m -p 8080:8080 ok-server +docker run -d --restart unless-stopped --name ok-server --cpus=1 --memory=256m -p 8080:8080 ok-server ``` +This will start the server and expose it on port 8080. The container will run until stopped. You can restart it with `docker start ok-server`, or remove it with `docker rm ok-server`. + ### Container CLI on a Mac ```shell @@ -56,7 +58,7 @@ container build -t ok-server . container run --rm -d --name ok-server -c 1 -m 256m -p 8080:8080 ok-server ``` -This will start the server and expose it on port 8080. +This will start the server and expose it on port 8080. The container will run until stopped, and will be removed when stopped. You can stop it with `container stop ok-server`. ## License