R
RunPod3w ago
Max

Container restart policy

Is it possible to run a container only once? After the job is done, the container restarts again, and I have to catch it to terminate, which is not the desired behavior. I need some kind of docker restart policy 'no'
1 Reply
nerdylive
nerdylive3w ago
in your cmd, run sleep infinity command sleep infinity or any program that busy waits (runs all the time) like web server

Did you find this page helpful?