summaryrefslogtreecommitdiff
path: root/cmd/podman/common/netflags.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-21 05:21:09 -0400
committerGitHub <noreply@github.com>2020-04-21 05:21:09 -0400
commit47d99fb6253238e7603fc96d5b9bbb14f1e8c948 (patch)
tree23f7e52d04fe78df60ba1a94c1ef5e7106ff8e82 /cmd/podman/common/netflags.go
parent8884f6a4f357ea64ad5f20f791ec0a09bdd36352 (diff)
parent532c7343a9af5fbdcc682f7f93c987b1f1e49b41 (diff)
downloadpodman-47d99fb6253238e7603fc96d5b9bbb14f1e8c948.tar.gz
podman-47d99fb6253238e7603fc96d5b9bbb14f1e8c948.tar.bz2
podman-47d99fb6253238e7603fc96d5b9bbb14f1e8c948.zip
Merge pull request #5647 from rhatdan/containers.conf
Update podmanV2 to use containers.conf
Diffstat (limited to 'cmd/podman/common/netflags.go')
-rw-r--r--cmd/podman/common/netflags.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/podman/common/netflags.go b/cmd/podman/common/netflags.go
index 104038d05..1a47733e7 100644
--- a/cmd/podman/common/netflags.go
+++ b/cmd/podman/common/netflags.go
@@ -17,15 +17,15 @@ func GetNetFlags() *pflag.FlagSet {
"Add a custom host-to-IP mapping (host:ip) (default [])",
)
netFlags.StringSlice(
- "dns", getDefaultDNSServers(),
+ "dns", containerConfig.DNSServers(),
"Set custom DNS servers",
)
netFlags.StringSlice(
- "dns-opt", getDefaultDNSOptions(),
+ "dns-opt", containerConfig.DNSOptions(),
"Set custom DNS options",
)
netFlags.StringSlice(
- "dns-search", getDefaultDNSSearches(),
+ "dns-search", containerConfig.DNSSearches(),
"Set custom DNS search domains",
)
netFlags.String(
@@ -37,7 +37,7 @@ func GetNetFlags() *pflag.FlagSet {
"Container MAC address (e.g. 92:d0:c6:0a:29:33)",
)
netFlags.String(
- "network", getDefaultNetNS(),
+ "network", containerConfig.NetNS(),
"Connect a container to a network",
)
netFlags.StringSliceP(