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)
| 132 | // are unmounted beforehand. If "force" is not true, then layers being in use |
| 133 | // is considered to be an error condition. |
| 134 | func (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. |
| 143 | func (r *Runtime) storageToImage(storageImage *storage.Image, ref types.ImageReference) *Image { |
no outgoing calls