fix: update Docker run command to include restart policy and clarify container behavior

This commit is contained in:
2026-05-09 22:50:09 +02:00
parent 543480b34f
commit c0237886ee
+4 -2
View File
@@ -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