diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-27 10:49:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 10:49:42 -0700 |
commit | 340eeec1b654880f9d339c9ac2957bcaeaee6829 (patch) | |
tree | 4256daeae13e2de6145d3b5c5be5f1929e955bbc /libpod/container.go | |
parent | 1ff03ee9f5e72fd62ba8e798035fa43f8f18b6dd (diff) | |
parent | 0cd92eae65b31cdbaa19e3cccb0e3234196a6d17 (diff) | |
download | podman-340eeec1b654880f9d339c9ac2957bcaeaee6829.tar.gz podman-340eeec1b654880f9d339c9ac2957bcaeaee6829.tar.bz2 podman-340eeec1b654880f9d339c9ac2957bcaeaee6829.zip |
Merge pull request #2747 from mheon/dns_none
Add --dns=none
Diffstat (limited to 'libpod/container.go')
-rw-r--r-- | libpod/container.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libpod/container.go b/libpod/container.go index ec4e31026..806e75c63 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -293,6 +293,10 @@ type ContainerConfig struct { // namespace // These are not used unless CreateNetNS is true PortMappings []ocicni.PortMapping `json:"portMappings,omitempty"` + // UseImageResolvConf indicates that resolv.conf should not be + // bind-mounted inside the container. + // Conflicts with DNSServer, DNSSearch, DNSOption. + UseImageResolvConf bool // DNS servers to use in container resolv.conf // Will override servers in host resolv if set DNSServer []net.IP `json:"dnsServer,omitempty"` @@ -302,6 +306,10 @@ type ContainerConfig struct { // DNS options to be set in container resolv.conf // With override options in host resolv if set DNSOption []string `json:"dnsOption,omitempty"` + // UseImageHosts indicates that /etc/hosts should not be + // bind-mounted inside the container. + // Conflicts with HostAdd. + UseImageHosts bool // Hosts to add in container // Will be appended to host's host file HostAdd []string `json:"hostsAdd,omitempty"` |