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

docker compose down fails to remove network #1710

Open
compojoom opened this issue Jun 20, 2023 · 0 comments
Open

docker compose down fails to remove network #1710

compojoom opened this issue Jun 20, 2023 · 0 comments

Comments

@compojoom
Copy link

compojoom commented Jun 20, 2023

Describe the bug
On CircleCI when trying to turn of the docker services we get the following error:
⠿ Network nitro_default Error 0.0s
failed to remove network nitro_default: Error response from daemon: error while removing network: network nitro_default id 721f08eff5d7191f2ef11bf59cc948273a129da596a1d51a032395a616dbe4f2 has active endpoints

Exited with code exit status 1

I've seen this locally couple of times as well, but there it can't be reproduced reliably.

Here is the circleCI run where it fails:
https://app.circleci.com/pipelines/github/beamer-bridge/beamer/3163/workflows/89e522df-aa09-4a60-9442-ffaa6ed92915/jobs/29965

To Reproduce
On my mac I'm not able to reproduce this all the time. But on circleCI it happened with the following steps:

test-node.bash --init --detach

and then try to turn all containers off with:

docker-compose -f docker-compose.yaml down

We found the following workaround on circleCI:

    image_id=$(docker ps --filter "ancestor=nitro-testnode-scripts" --format "{{.ID}}")
    if [[ ! -z $image_id ]]; then
        docker stop $image_id
    fi

Basically there is one runscripts container still being active. My guess is that docker compose down for some reason misses it and when it tries to destroy the network that container is preventing it.

Expected behavior
Expecting docker compose down to work without any glitches.

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

1 participant