MCPcopy Create free account
hub / github.com/containers/common / Shutdown

Method Shutdown

libimage/runtime.go:134–140  ·  view source on GitHub ↗

Shutdown attempts to free any kernel resources which are being used by the underlying driver. If "force" is true, any mounted (i.e., in use) layers are unmounted beforehand. If "force" is not true, then layers being in use is considered to be an error condition.

(force bool)

Source from the content-addressed store, hash-verified

132// are unmounted beforehand. If "force" is not true, then layers being in use
133// is considered to be an error condition.
134func (r *Runtime) Shutdown(force bool) error {
135 _, err := r.store.Shutdown(force)
136 if r.eventChannel != nil {
137 close(r.eventChannel)
138 }
139 return err
140}
141
142// storageToImage transforms a storage.Image to an Image.
143func (r *Runtime) storageToImage(storageImage *storage.Image, ref types.ImageReference) *Image {

Callers 4

testNewRuntimeFunction · 0.80
TestSaveLoadFunction · 0.80
TestReferenceFunction · 0.80
TestPushFunction · 0.80

Calls

no outgoing calls

Tested by 4

testNewRuntimeFunction · 0.64
TestSaveLoadFunction · 0.64
TestReferenceFunction · 0.64
TestPushFunction · 0.64