Skip to content

Commit

Permalink
Don't try to open browser when running in Docker (#246)
Browse files Browse the repository at this point in the history
If I use the `-it` flags with `docker run`, the tool realizes it's in
interactive mode, so it tries to open a browser. But that doesn't work
from inside a container.

Here's the error I see:
```
Failed to open browser: exec: "xdg-open": executable file not found in $PATH
```

It's not a fatal error, so the tool still works. It's just a nuisance
error in the output. This one-liner should remedy that.
  • Loading branch information
jhump authored May 16, 2023
1 parent e26b100 commit 20e0ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ COPY --from=builder /grpcui /bin/grpcui
USER grpcui
EXPOSE 8080

ENTRYPOINT ["/bin/grpcui", "-bind=0.0.0.0", "-port=8080"]
ENTRYPOINT ["/bin/grpcui", "-bind=0.0.0.0", "-port=8080", "-open-browser=false"]

0 comments on commit 20e0ed7

Please sign in to comment.