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

report external network not found when swarm is disabled #10565

Merged
merged 1 commit into from May 15, 2023

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented May 14, 2023

What I did
Compose should report an error when external network isn't found. This check can't be implemented when swarm mode is enabled for ... some reasons 😅 but we can detect swarm is disabled.

Related issue
fixes #9948

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@codecov
Copy link

codecov bot commented May 14, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.10 ⚠️

Comparison is base (77dc9b5) 59.59% compared to head (107ae7e) 59.50%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10565      +/-   ##
==========================================
- Coverage   59.59%   59.50%   -0.10%     
==========================================
  Files         107      107              
  Lines        9341     9356      +15     
==========================================
  Hits         5567     5567              
- Misses       3199     3214      +15     
  Partials      575      575              
Impacted Files Coverage Δ
pkg/compose/compose.go 61.62% <0.00%> (-3.81%) ⬇️
pkg/compose/create.go 61.09% <0.00%> (-0.32%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndeloof ndeloof merged commit 00f72cb into docker:v2 May 15, 2023
22 of 24 checks passed
@ndeloof ndeloof deleted the check_external_network branch May 15, 2023 18:57
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

Successfully merging this pull request may close these issues.

[BUG] Docker compose ignores network statements completely
2 participants