-
Notifications
You must be signed in to change notification settings - Fork 82
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
map error on rest api when docker-link is processing new node #8
Comments
I guess the choice of auto-naming mechanics backfired here :/ What happens is that docker-link expects service names to be path-components, not paths – i.e. without slashes. So when your service "/bin/consul" starts, docker-link requests a new service to be created on GORB, but the endpoint it hits ends up being /service/bin/consul – from GORB's perspective, service name here is "bin" and "consul" is a backend. I can make a quick fix by replacing all "/" with dashes, for example. Another problem here is that docker-link doesn't expect containers to expose multiple ports. I'll fix this by treating different exposed ports of a container as different virtual services. This project is very new and initially it was written as a demo for DockerCon, so pardon the appearances and bugs =) |
Thanks! Totally expected in a new project. On Sun, Nov 29, 2015 at 12:12 PM, Andrey Sibiryov notifications@github.com
|
Specifically, replace all forward slashes with dashes in container path and mix in the port number & protocol to construct the future virtual service name. Should resolve most of the issue #8.
@BrianAdams I think this should fix your issue. Please try it out! |
Yep that seems to be working. I have multiple services on port 8500 and they are now responding :-). |
I am simply using docker-compose to bring up some existing docker images. Is that pull path for the service supposed to be passed all the way though to the rest api? I'm getting the error you see below
The text was updated successfully, but these errors were encountered: