Skip to content
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

[BUG] compose config reports a default network even if not needed #11606

Closed
luciangabor opened this issue Mar 12, 2024 · 1 comment
Closed

[BUG] compose config reports a default network even if not needed #11606

luciangabor opened this issue Mar 12, 2024 · 1 comment

Comments

@luciangabor
Copy link

$ docker compose -f - config <<-'EOF'
name: oh-no
services:
  service:
    image: image
    networks:
      net:
networks:
  net:
EOF
name: oh-no
networks:
  default:
    name: oh-no_default
  net:
    name: oh-no_net
services:
  service:
    image: image
    networks:
      net: null

(up doesn't create it)

#11587 (comment)
#11589 (comment)

@ndeloof
Copy link
Contributor

ndeloof commented Mar 13, 2024

fixed by #11604 and compose-spec/compose-go#595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants