GoogleCloudPlatform / GoogleCloudPlatform/deploystack-three-tier-app
[dev] lookup host.docker.internal: no such host
- Dominant language
- Go
- Stars
- 39
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Docker version: 20.10.20, build 9fdeb9c
docker ps output:
```
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4bbcf6500f0 todo-html "/docker-entrypoint.…" About a minute ago Up About a minute 8080/tcp, 0.0.0.0:8080->80/tcp, :::8080->80/tcp todo-html
63e0c64b1776 todo-goapi "/todo-api" About a minute ago Up About a minute 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp todo-goapi
d004af0896a5 redis "docker-entrypoint.s…" About a minute ago Up About a minute 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp todo-redis
3bab78003d5d todo-mysql "/entrypoint.sh mysq…" About a minute ago Up About a minute (healthy) 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060-33061/tcp todo-mysql
```
curl http://127.0.0.1:9000/api/v1/todo returns http 500 to frontend when i'm accessing localhost:8080, when i'm trying to curl on the api i get err like below:
```
$ curl http://127.0.0.1:9000/api/v1/todo
{"error":"error caching list of todos : dial tcp: lookup host.docker.internal on 192.168.43.1:53: no such host"}
```
Contributor guide
Assessment
This issue has not been assessed yet.