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

Function DecodeContainerRmOptLabel

pkg/containerutil/containerutil.go:645–647  ·  view source on GitHub ↗

DecodeContainerRmOptLabel decodes bool value for the --rm option from string value for a label.

(rmOptLabel string)

Source from the content-addressed store, hash-verified

643
644// DecodeContainerRmOptLabel decodes bool value for the --rm option from string value for a label.
645func DecodeContainerRmOptLabel(rmOptLabel string) (bool, error) {
646 return strconv.ParseBool(rmOptLabel)
647}
648
649// ParseExtraHosts takes an array of host-to-IP mapping strings, e.g. "localhost:127.0.0.1",
650// and a hostGatewayIP for resolving mappings to "host-gateway".

Callers 1

AttachFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…