(c *Container)
| 67 | } |
| 68 | |
| 69 | func 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. |
| 85 | type stoppedState struct { |
no test coverage detected
searching dependent graphs…