MCPcopy
hub / github.com/opencontainers/runc / destroy

Method destroy

libcontainer/state_linux.go:215–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

213}
214
215func (r *restoredState) destroy() error {
216 if _, err := os.Stat(filepath.Join(r.c.stateDir, "checkpoint")); err != nil {
217 if !errors.Is(err, os.ErrNotExist) {
218 return err
219 }
220 }
221 return destroy(r.c)
222}
223
224// loadedState is used whenever a container is restored, loaded, or setting additional
225// processes inside and it should not be destroyed when it is exiting.

Callers

nothing calls this directly

Calls 1

destroyFunction · 0.85

Tested by

no test coverage detected