Container management like docker through cli
g
generalkugelblitz
Many a time Ctrl+C sigint does not terminate a container. We must be able to manually shutdown container by id. Basically expose main docker commands like
docker ps
docker stop id
docker kill id
and change them to cerebrium ps, cerebrium stop and cerebrium kill.
This must be added to cli.
Wesley Robinson
An addition to this could be similar to
cerebrium app kill {app_id}
which should terminate all running containers and set scale parameters to 0 for the app, so we do not restart. One option might be
-f, --force
: do not wait for graceful termination and draining of any ongoing requests, immediately SIGKILL.This is obviously a very dangerous action for running applications, so we would need guard rails around it, however it would probably improve the experience/comfort customers who are trying to optimise their costs during the iterative development phase, especially while they may still be experimenting with Cerebrium scale configs.