server: do not remove but stop sandboxes on shutdown
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
4a8debe6c5
commit
f00edc2b2d
2 changed files with 7 additions and 8 deletions
|
@ -510,7 +510,7 @@ func (s *Server) cleanupSandboxesOnShutdown() {
|
|||
_, err := os.Stat(shutdownFile)
|
||||
if err == nil || !os.IsNotExist(err) {
|
||||
logrus.Debugf("shutting down all sandboxes, on shutdown")
|
||||
s.RemoveAllPodSandboxes()
|
||||
s.StopAllPodSandboxes()
|
||||
err = os.Remove(shutdownFile)
|
||||
if err != nil {
|
||||
logrus.Warnf("Failed to remove %q", shutdownFile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue