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

Function runPoststopHooks

libcontainer/state_linux.go:69–82  ·  view source on GitHub ↗
(c *Container)

Source from the content-addressed store, hash-verified

67}
68
69func runPoststopHooks(c *Container) error {
70 hooks := c.config.Hooks
71 if hooks == nil {
72 return nil
73 }
74
75 s, err := c.currentOCIState()
76 if err != nil {
77 return err
78 }
79 s.Status = specs.StateStopped
80
81 return hooks.Run(configs.Poststop, s)
82}
83
84// stoppedState represents a container is a stopped/destroyed state.
85type stoppedState struct {

Callers 1

destroyFunction · 0.85

Calls 2

currentOCIStateMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…