loadNetOpts loads network options into InternalLabels.
(opts types.NetworkOptions)
| 958 | |
| 959 | // loadNetOpts loads network options into InternalLabels. |
| 960 | func (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 | |
| 972 | func dockercompatMounts(mountPoints []*mountutil.Processed) []dockercompat.MountPoint { |
| 973 | result := make([]dockercompat.MountPoint, len(mountPoints)) |