ITADN

GRPC is not working

#150Openarulrajnet 创建于 2025-07-03
A
arulrajnetcommented
### Welcome! - [x] Yes, I've searched similar issues on [GitHub](https://github.com/traefik/whoami/issues) and didn't find any. ### What did you do? I tried the steps in the README ``` arul@mac ~$ls -l grpc.proto -rw-r--r--@ 1 arul staff 455B 3 Jul 14:57 grpc.proto arul@mac ~$docker run -d -p 8080:80 --name iamfoo traefik/whoami 1e3512c0a9034364ec189d66b115c1f36867110a298167d0d3493991a61ae56b arul@mac ~$grpcurl -plaintext -proto grpc.proto localhost:8080 whoami.Whoami/Whoami Failed to dial target host "localhost:8080": context deadline exceeded ``` ### What were you expecting? My expectation is, it should return the following response ``` { "hostname": "5a45e21984b4", "iface": [ "127.0.0.1", "::1", "172.17.0.2" ] } ``` ### What version are you using? v1.11 linux/arm64 The SHA of docker is `sha256:200689790a0a0ea48ca45992e0450bc26ccab5307375b41c84dfc4f2475937ab` ### What is your environment & configuration? ``` docker run -d -p 8080:80 --name iamfoo traefik/whoami ``` ### If applicable, please paste the log output in DEBUG level Here are the logs ``` arul@mac ~$docker logs iamfoo 2025/07/03 09:33:10 Starting up on port 80 ```
1 条评论