-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
fin cleanup is potentially disruptive #582
Comments
True and I've been running into this myself. Unfortunately, there is a limit of about 30 docker-compose projects/networks that can exist on a host at the same time, so then do need to be cleanup up once in a while. See #184 (comment) We can take the same approach as in vhost-proxy and re-create the network during |
I just came across this error after running the fin update with one project that was stopped. I know I've seen this before and I'm not sure how to get it going again.
I did a full computer restart which resolved the issues. |
Actually, this time a full computer restart did not fix one of my projects.
|
Restarting you computer will not fix it. You will either have to reset the project with Here's a script that simplifies this process: project=$(fin debug -c 'echo $COMPOSE_PROJECT_NAME')
fin docker network create ${project}_default
for service in $(fin docker-compose ps --services); do fin docker network connect ${project}_default ${project}_${service}_1; done Then |
I guess we need to have some project-level command to re-create the network. Or remove network prune from the cleanup as it causes issues with all stopped projects. |
Short term, we can stop doing Long term, we should replace it with a more granular cleanup process, which will disconnect stopped project containers from the network, then drop that network. Alternatively, add logic to recreate the network and reconnect containers in
|
Pushed the short term fix ^ |
Just for the record, here's the Lando issue for this problem: lando/lando#990 And the issue for docker-compose itself: docker/compose#5745 |
The script in here i've just been running |
Here's the commit that addresses the issue with network recreation at the In the context of docksal/docksal, we should do a few things:
cc @achekulaev |
Follow up to #582 (comment) The line
should be
So a custom command regenerate_network in the project could look like:
looks like this can be called everytime safely before fin up. |
Ran into a similar problem, but the network still existed, only the binding with the containers was gone, lazy fix is to comment out the |
Updated script so it continues
|
fin cleanup removes networks for existing but stopped projects.
Which can later lead to errors if you try to start the project
The text was updated successfully, but these errors were encountered: