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

Explicitly disconnect yagna containers before stopping Docker network #540

Merged
merged 3 commits into from
Aug 27, 2021

Conversation

azawlocki
Copy link
Contributor

@azawlocki azawlocki commented Aug 27, 2021

Resolves #539

This PR adds the step that explicitly disconnects containers from the docker_default network, using Python Docker SDK. It is equivalent to executing the command

docker network disconnect -f docker_default container

for each container connected to docker_default.

This new step is performed as part of ComposeNetworkManager.stop_network(), before running docker-compose down.

@azawlocki azawlocki requested a review from kmazurek August 27, 2021 10:29
Copy link
Contributor

@kmazurek kmazurek left a comment

Choose a reason for hiding this comment

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

Nice! Does this mean we can remove the cleanup steps from integration.yml workflow in goth repo?

"""Stop the running compose network, removing its containers.

Before the network is stopped, all yagna containers need to be disconnected,
due to https://github.com/golemfactory/goth/issues/539.
Copy link
Contributor

Choose a reason for hiding this comment

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

This links to the issue which this PR is going to resolve! I believe the underlying problem in Docker is described here: moby/moby#23302

@azawlocki
Copy link
Contributor Author

Nice! Does this mean we can remove the cleanup steps from integration.yml workflow in goth repo?

That's possible

@azawlocki azawlocki merged commit b145b7a into master Aug 27, 2021
@azawlocki azawlocki deleted the az/disconnect-yagna-containers branch August 27, 2021 12:36
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.

Disconnect containers before stopping Docker compose network
2 participants