reference
Docker run flags
What each flag in the DeepLM Ops run command does.
| Flag | What it does |
|---|---|
-d | Runs the container in the background. |
--name dlm-ops | Names the container so you can use docker logs dlm-ops and docker rm -f dlm-ops. |
-p 127.0.0.1:8090:8090 | Publishes the chat page on port 8090 of your own machine only. |
-v dlm-ops:/var/lib/dlm-ops | Keeps DeepLM Ops data, including the downloaded model, in a named Docker volume. |
--read-only | Mounts the container's file system read-only. |
--tmpfs /tmp | Gives the container a temporary in-memory /tmp. |
--tmpfs "/run/dlm:uid=1000,gid=1000,mode=0700" | Gives the app a private in-memory directory. |
--cap-drop ALL | Removes all Linux capabilities from the container. |
--security-opt no-new-privileges | Stops processes in the container from gaining extra privileges. |
--pids-limit 256 | Limits how many processes the container can start. |
--restart unless-stopped | Restarts the container after a reboot, unless you stopped it. |
-e DLM_OPS_SLURM=replay | Turns on the demo cluster. Leave it out to use your own machine. |
--gpus all | Optional. Passes an NVIDIA GPU into the container. Put it right after docker run -d. |