Open IvanRibakov opened 6 months ago
Same problem here
@IvanRibakov Could you provide an example?
I went as far as to provide a pull request which unfortunately was rejected. @jhrotko what exactly are you looking for from the example that is missing from the current issue description?
Description
Previously this DockerCompose configuration would successfully start a container:
But using latest Docker+DockerCompose on Linux
container fails to start:
https://github.com/moby/moby/blob/d25b0bd7ea6ce17ca085c54d5965eeeb66417e52/libnetwork/sandbox_dns_unix.go#L259-L269
I can see how it makes sense from Docker perspective to be strict about supplied configuration options. I'm wondering whether it would be possible for the DockerCompose to filter out empty DNS entries before passing them to Docker and logging a warning. As far as I understand there is no other way to have a conditional behaviour that either uses external DNS service or the default host one without creating 2 different service configurations.