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

feat: add network in use check to compose down #1938

Closed
wants to merge 0 commits into from

Conversation

Retrospection
Copy link
Contributor

@Retrospection Retrospection commented Jan 28, 2023

Signed-off-by: YuRuosheng [email protected]

Close #1425

Copy link
Member

@Zheaoli Zheaoli left a comment

Choose a reason for hiding this comment

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

LGTM

@Zheaoli Zheaoli requested a review from AkihiroSuda January 28, 2023 15:30
@Zheaoli Zheaoli added this to the v1.x milestone Jan 28, 2023
@djdongjin
Copy link
Member

Can you add an integration test for this scenario?

@Retrospection
Copy link
Contributor Author

Can you add an integration test for this scenario?

I may try~

Retrospection added a commit to Retrospection/nerdctl that referenced this pull request Feb 9, 2023
Retrospection added a commit to Retrospection/nerdctl that referenced this pull request Feb 9, 2023
Retrospection added a commit to Retrospection/nerdctl that referenced this pull request Feb 11, 2023
@fahedouch fahedouch self-requested a review February 15, 2023 14:49
@fahedouch fahedouch modified the milestones: v1.x, v1.2.1 Feb 15, 2023
@AkihiroSuda
Copy link
Member

Signed-off-by: Retros

Please use a real name, as explained in cncf/foundation#383 (comment)

@Retrospection Retrospection force-pushed the master branch 3 times, most recently from 7732e5a to c878de2 Compare February 21, 2023 14:17
@suyanhanx
Copy link
Contributor

suyanhanx commented Feb 22, 2023

Please also update your DCO sign in the PR description and squash your commits.

t.Logf("projectName=%q", projectName)

base.ComposeCmd("-p", projectName, "-f", compFull.YAMLFullPath(), "up", "-d").AssertOK()
base.ComposeCmd("-p", projectName, "-f", compOrphan.YAMLFullPath(), "down", "-v").AssertCombinedOutContains("is in use")
Copy link
Contributor

@suyanhanx suyanhanx Feb 23, 2023

Choose a reason for hiding this comment

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

Need to clean up the orphan container and related network.

defer base.ComposeCmd("-p", projectName, "-f", compFull.YAMLFullPath(), "down", "--remove-orphans").AssertOK()

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

Successfully merging this pull request may close these issues.

nerdctl compose down with orphan container should keep the same behavior with docker
6 participants