mirror of
https://github.com/containers/podman-compose.git
synced 2025-07-04 22:50:12 +02:00
Add network "dns" support
This patch add 'x-podman.dns' option to the 'network' configuration, allowing users to set the DNS resolvers for a defined network. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
@ -835,6 +835,11 @@ def get_network_create_args(net_desc, proj_name, net_name):
|
||||
args.append("--ipv6")
|
||||
if net_desc.get("x-podman.disable_dns"):
|
||||
args.append("--disable-dns")
|
||||
if net_desc.get("x-podman.dns"):
|
||||
args.extend((
|
||||
"--dns",
|
||||
",".join(norm_as_list(net_desc.get("x-podman.dns"))),
|
||||
))
|
||||
|
||||
if isinstance(ipam_config_ls, dict):
|
||||
ipam_config_ls = [ipam_config_ls]
|
||||
|
Reference in New Issue
Block a user