-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service unbound declares mutually exclusive network_mode
and networks
: invalid compose project
#158
Comments
The issue is with the compose file. You reference "dns" under networks, but you don't define a dns network in the compose file. https://docs.docker.com/compose/networking/#specify-custom-networks |
Actually I just copied the docker-compose file from documentation. |
The file snippet above doesn't match the documentation. It's missing the networks and volume declarations at the bottom.
|
Try the updated Docker Compose example. |
Describe the bug
Running
docker compose pull
fails with error.To Reproduce
Steps to reproduce the behavior:
docker compose pull
Expected behavior
Deployment of unbound container finishes w/o error.
Error messages
service unbound declares mutually exclusive `network_mode` and `networks`: invalid compose project
Additional context
Using a modified docker-compose.yml file:
The text was updated successfully, but these errors were encountered: