reference

Docker run flags

What each flag in the DeepLM Ops run command does.

FlagWhat it does
-dRuns the container in the background.
--name dlm-opsNames the container so you can use docker logs dlm-ops and docker rm -f dlm-ops.
-p 127.0.0.1:8090:8090Publishes the chat page on port 8090 of your own machine only.
-v dlm-ops:/var/lib/dlm-opsKeeps DeepLM Ops data, including the downloaded model, in a named Docker volume.
--read-onlyMounts the container's file system read-only.
--tmpfs /tmpGives 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 ALLRemoves all Linux capabilities from the container.
--security-opt no-new-privilegesStops processes in the container from gaining extra privileges.
--pids-limit 256Limits how many processes the container can start.
--restart unless-stoppedRestarts the container after a reboot, unless you stopped it.
-e DLM_OPS_SLURM=replayTurns on the demo cluster. Leave it out to use your own machine.
--gpus allOptional. Passes an NVIDIA GPU into the container. Put it right after docker run -d.