diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-23 07:18:30 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2019-02-23 07:19:30 -0500 |
commit | ba62683cbf2dd6d3227a7b6c124e9d055ea15b4b (patch) | |
tree | 2f7ee9f2675e37b27347292e86fcbd12b44ab01e /cmd/podman | |
parent | 0969d725a3b302d9baa0616a204f7fc824404973 (diff) | |
download | podman-ba62683cbf2dd6d3227a7b6c124e9d055ea15b4b.tar.gz podman-ba62683cbf2dd6d3227a7b6c124e9d055ea15b4b.tar.bz2 podman-ba62683cbf2dd6d3227a7b6c124e9d055ea15b4b.zip |
Allow dns settings with --net=host
This seems to be a needless restriction. We make a copy of the
hosts /etc/resolv.conf file, so these changes to not modify the
host.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/create.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 12b793d23..868f90d54 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -646,11 +646,6 @@ func parseCreateOpts(ctx context.Context, c *cliconfig.PodmanCommand, runtime *l if util.StringInSlice(".", c.StringSlice("dns-search")) && len(c.StringSlice("dns-search")) > 1 { return nil, errors.Errorf("cannot pass additional search domains when also specifying '.'") } - if !netMode.IsPrivate() { - if c.IsSet("dns-search") || c.IsSet("dns") || c.IsSet("dns-opt") { - return nil, errors.Errorf("specifying DNS flags when network mode is shared with the host or another container is not allowed") - } - } // Validate domains are good for _, dom := range c.StringSlice("dns-search") { |