-
Notifications
You must be signed in to change notification settings - Fork 175
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 up -d fails when network already exists. #6405
Comments
Following workaround works for me. |
well, obvious that will work and I should perhaps have added that. It works because down will delete/remove the network (along with any running containers that is part of the compose file, and not to mention unnamed volumes). This is not necessarily always what you really want to do, if avoidable (could be a db service that other containers use). And it will not always work. You may have external containers using the network. In this case the network will not be deleted, leaving you with all containers (in the compose file) down. |
We're running into the same problem with VIC 1.4.3. This is a very annoying issue, especially since |
On a normal Linux container host, when I Would it be possible for you to make VIC return an empty edit: I think that the JSON Null results in a Python None for remote_labels. This would explain the following errror:
|
@yuyangbj Did you have time to look into this issue? Can you confirm my hypothesis that the root cause is the |
@mariolenz yes, I agree with you totally. I am working on the fix. |
I checked the latest build. Labels will show empty object. yangyu-a01:bin yangyu$ docker --tls inspect fac6672e9371 Piece of screenshot for docker ps:
|
This sounds promising. I'd like to test it and give you some feedback if this fixes our problems, but I'm not sure if I will find the time... we're very short-staffed at the moment :-/ Anyway, thanks for the info :-) |
I am waiting your response to see if we can close it. Thanks. |
I submit a PR to fix this issue. Currently you guys can set version to 3.0, that will help you avoid this problem |
VIC version:
vic-v1.2.1-dev-b37a80f8
Deployment details:
I have deployed the VCH with client client and bridge network. --tls-server-key, --tls-server-cert, --tls-ca and --tls-cert-path, with https://vic_address as a insecure registry.
Steps to reproduce:
Running
docker-compose up -d
on a project where one network is already existing, throws an AttributeError. This could for example be due to the fact that another project is using this network as an "external" and thus the network was not deleted ondocker-compose down
. Of if you rundocker-compose up -d
without callingdocker-compose down
(one might just have stopped a single service, etc).Note: This only happens as long as the network is not defined as external.
Actual behavior:
Expected behavior:
No errors, just create whatever services, networks or volumes that are not already created.
Logs:
I can't supply any log files (company policy -- sorry) but I can see from the docker-personality.log, that when trying to bring up the compose project, it first warns about
error getting config from source: config not modified
, then informs about finding various volumes, and then at the end warns about the same. These are the only new lines in that log file. Other log files doesn't seem to have any related content when trying to run the command.The text was updated successfully, but these errors were encountered: