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

Method loadNetOpts

pkg/cmd/container/create.go:960–970  ·  view source on GitHub ↗

loadNetOpts loads network options into InternalLabels.

(opts types.NetworkOptions)

Source from the content-addressed store, hash-verified

958
959// loadNetOpts loads network options into InternalLabels.
960func (il *internalLabels) loadNetOpts(opts types.NetworkOptions) {
961 il.hostname = opts.Hostname
962 il.domainname = opts.Domainname
963 il.ipAddress = opts.IPAddress
964 il.ip6Address = opts.IP6Address
965 il.networks = opts.NetworkSlice
966 il.macAddress = opts.MACAddress
967 il.dnsServers = opts.DNSServers
968 il.dnsSearchDomains = opts.DNSSearchDomains
969 il.dnsResolvConfOptions = opts.DNSResolvConfOptions
970}
971
972func dockercompatMounts(mountPoints []*mountutil.Processed) []dockercompat.MountPoint {
973 result := make([]dockercompat.MountPoint, len(mountPoints))

Callers 1

CreateFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected