Add more pitfalls

This commit is contained in:
Bjarne Sievers 2021-10-06 13:32:52 +02:00 committed by GitHub
parent 09685b0f08
commit eba9a8bb23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ docker pull fullstorydev/grpcurl:latest
# Run the tool # Run the tool
docker run fullstorydev/grpcurl api.grpc.me:443 list docker run fullstorydev/grpcurl api.grpc.me:443 list
``` ```
Note that for debugging services running locally on your host instead of online servers, you need to connect the container to your host network. Otherwise you will get `connect: connection refused` errors. [This SO answer](https://stackoverflow.com/a/24326540) helps. Note that there are some pitfalls when using docker:
- make sure the container can talk to your localhost if you do local debugging (e.g. with `-network="host"` [or other options](https://stackoverflow.com/a/24326540))
- if you need to provide proto files, you need to mount your proto folder as a volume und adjust the import path to container paths (e.g. `-v $(pwd):/workdir`)
- if you want to pipe in a local file using the `-d @` option, you need to use the -i flag on the docker command (e.g. `docker run -i [...] fullstorydev/grpcurl [...] < message.json`
### Other Packages ### Other Packages