lapnd
CCoder.com
•Created by gammazeta on 1/19/2024 in #help
Docker Template. Start/stop workspace without delete docker container
Yes it is just a tricky/workaround. Can not be used as good solution
18 replies
CCoder.com
•Created by gammazeta on 1/19/2024 in #help
Docker Template. Start/stop workspace without delete docker container
If you are using docker containers for workspace (not k8s), one way is create container with restart policy is “always”. Then inside the container/workspace, you can make it crash by terminating/killing the root pid (pid=1) like kill -KILL 1 or kill -TERM 1. Perhaps ovverride reboot app by these comand sothat user just type reboot. Docker engine will take care of restarting crashed container
18 replies