MCPcopy Create free account
hub / github.com/containerd/nerdctl / statusFromNative

Function statusFromNative

pkg/inspecttypes/dockercompat/dockercompat.go:771–781  ·  view source on GitHub ↗
(x containerd.Status, labels map[string]string)

Source from the content-addressed store, hash-verified

769}
770
771func statusFromNative(x containerd.Status, labels map[string]string) string {
772 switch s := x.Status; s {
773 case containerd.Stopped:
774 if labels[restart.StatusLabel] == string(containerd.Running) && restart.Reconcile(x, labels) {
775 return "restarting"
776 }
777 return "exited"
778 default:
779 return string(s)
780 }
781}
782
783func networkSettingsFromNative(n *native.NetNS, _ *specs.Spec) (*NetworkSettings, error) {
784 res := &NetworkSettings{

Callers 1

ContainerFromNativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…