Closed lrkwz closed 5 years ago
Which host environment you're working with?
Can you access the host by do curl http://172.20.0.1:8080/management/health
from within web
container?
Can you ping my-api-gateway
from within web
container?
Working with ubuntu 18.04
Yes I can both curl the host ip and ping the gateway name.
No firewall in the way
Strange. What are the logs of my-api-gateway
when starting?
Do you have the same problem when you try one of the example at https://github.com/qoomon/docker-host/blob/master/README.md
The logs where pretty normal:
Docker Host: 172.20.0.1 (default gateway)
Forwarding ports: 0:65535
I resolved dropping all the containers, removing all the docker-networks and start all over again. It must have been a mess with the "real" networks (eth, wifi) and docker's nets.
Sorry for bothering you.
Glad to hear that.
On Sat, 7 Sep 2019, 18:48 Luca Orlandi, notifications@github.com wrote:
The logs where pretty normal:
Docker Host: 172.20.0.1 (default gateway) Forwarding ports: 0:65535
I resolved dropping all the containers, removing all the docker-networks and start all over again. It must have been a mess with the "real" networks (eth, wifi) and docker's nets
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/qoomon/docker-host/issues/25?email_source=notifications&email_token=AA6HUATBL4L6W2GER2QVF6LQIPLPRA5CNFSM4ITIN5LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6E45XI#issuecomment-529125085, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6HUASIKXXHVI2SSWIOPN3QIPLPRANCNFSM4ITIN5LA .
I cannot make the gateway work properly. I've read #21 and bound my app to the host ip
172.20.0.1
(resulting fromdocker network inspect bridge --format='{{( index .IPAM.Config 0).Gateway}}'
).Relevant part of docker-compose.yml is:
Then I start the java api
mvn spring-boot:run
which listens on172.20.0.1
port8080
.From the host shell:
From the goomon/docker-host container:
From the linked container:
What's wrong in my config?