colima: Network bridge: I cant access the web gui of one of my containers...
Describe the Issue
Me and the graphjin maintainer are trying to understand why the web gui is not available from the host browser for this golang project from a MAC.
https://github.com/dosco/graphjin is the code.
Version
Colima Version:
colima version colima version 0.4.0 git commit: 43b32668e7c4ce1dd03c09ecb0e7e561d862f74e
runtime: docker arch: x86_64 client: v20.10.16 server: v20.10.14 apple@x-MacBook-Pro-2 blog %
Lima Version:
limactl --version limactl version 0.10.0
Qemu Version
qemu-img --version qemu-img version 6.2.0 Copyright © 2003-2021 Fabrice Bellard and the QEMU Project developers
Operating System
- [ x] macOS Intel
- macOS m1
- Linux
To Reproduce
Steps to reproduce the behavior:
Its here: https://github.com/dosco/graphjin/wiki/Quick-Start
- brew install dosco/graphjin/graphjin
- graphjin new blog
- cd blog
- export GO_ENV=development
- docker-compose run api db create
- docker-compose run api db setup
- docker-compose up
- docker-compose run api serve
- then go to the 0.0.0.0:8080
Expected behavior
See the admin gui of graphjin
Additional context
We checked that the web gui is available from inside the container.
apple@x-MacBook-Pro-2 blog % docker exec -ti blog_api_run_e36cc18c6db0 /bin/sh
/ # whoami
root
/ # ping 0.0.0.0:8080
PING 0.0.0.0:8080 (0.0.0.0): 56 data bytes
64 bytes from 127.0.0.1: seq=0 ttl=64 time=2.530 ms
64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.143 ms
64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.182 ms
^C
--- 0.0.0.0:8080 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.143/0.951/2.530 ms
/ # netstat -tulpn | grep :8080
tcp 0 0 :::8080 :::* LISTEN 1/graphjin
SO then the checked the docker networking bridge:
{
"Name": "blog_default",
"Id": "79aaf0085d087b8f26c72b2419cef841c7d3e77d3c89f37116085b77ababe646",
"Created": "2022-05-30T11:16:13.009756636Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.19.0.0/16",
"Gateway": "172.19.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"160ddab0538b1f9424af73ffa0b73b457cacc48f665a2ea0fc2ebb9284b4879e": {
"Name": "blog-db-1",
"EndpointID": "3fe806803a495ad831043a0d90f23c984f9aa309b78280c738e0ff6aac07b6d9",
"MacAddress": "02:42:ac:13:00:02",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": ""
},
"e97bdc6d544df6190cae97057e2bc18dec3477b1cca5d4735159ff8a12cdbfee": {
"Name": "blog_api_run_e36cc18c6db0",
"EndpointID": "1dd32f81b5a8257db5e7256c14ca4cc59affaba8301aacf6475e5a2eac82f994",
"MacAddress": "02:42:ac:13:00:04",
"IPv4Address": "172.19.0.4/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "default",
"com.docker.compose.project": "blog",
"com.docker.compose.version": "2.5.0"
},
"CreatedTime": 1653909373009
}
SO then i tried http://172.19.0.4:8080/ from the host browser, but no luck…
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (7 by maintainers)
I just tried it here on clean setup and it also works for me.
You solved it. Thank you so much for sticking it out.
I will see if i can get this updated in the makefile and docs for graphjin.
Shall i close this now ???