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

Creating container fails with invalid IP address for add-host #33912

Closed
goloroden opened this issue Jul 1, 2017 · 4 comments
Closed

Creating container fails with invalid IP address for add-host #33912

goloroden opened this issue Jul 1, 2017 · 4 comments

Comments

@goloroden
Copy link

I have written a software that controls Docker by using its REST API.

For months, it worked perfectly. Now I am having issues, since I updated from Docker for Mac 17.03 to Docker for Mac 17.06. If I create a virtual machine with Docker 17.03 using docker-machine, everything works as expected. So apparently between 17.03 and 17.06 something has changed.

The error message that I get is:

Failed to create container chat-broker. Error response from daemon: invalid IP address in add-host: ""

What's strange about this, is that I nowhere try to set the add-host option for the chat-broker container.

Do you have any idea of what might cause this issue, and how I could get around this?

@goloroden
Copy link
Author

PS: The same behavior happens in 17.05 on Ubuntu. So there must have been a change in the API which causes this behavior between 17.03 and 17.05. Any ideas?

@goloroden
Copy link
Author

goloroden commented Jul 1, 2017

Okay, we found it. This was an issue with our code, not Docker's API. Sorry for the trouble.

@asbaghel08
Copy link

what was the issue in code ? I am getting the same error

@goloroden
Copy link
Author

@asbaghel08 I'm really sorry, but I can't remember … it's almost five years ago (and yes, it would have been nice if I had mentioned the solution back then).

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

No branches or pull requests

3 participants