mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-10 06:07:50 +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:
@ -32,6 +32,18 @@ For explanations of these extensions, please refer to the [Podman Documentation]
|
||||
The following extension keys are available under network configuration:
|
||||
|
||||
* `x-podman.disable-dns` - Disable the DNS plugin for the network when set to 'true'.
|
||||
* `x-podman.dns` - Set nameservers for the network using supplied addresses (cannot be used with x-podman.disable-dns`).
|
||||
|
||||
For example, the following docker-compose.yml allows all containers on the same network to use the
|
||||
specified nameservers:
|
||||
```yml
|
||||
version: "3"
|
||||
network:
|
||||
my_network:
|
||||
x-podman.dns:
|
||||
- "10.1.2.3"
|
||||
- "10.1.2.4"
|
||||
```
|
||||
|
||||
For explanations of these extensions, please refer to the
|
||||
[Podman network create command Documentation](https://docs.podman.io/en/latest/markdown/podman-network-create.1.html).
|
||||
|
Reference in New Issue
Block a user