Recommend a workflow for using gh
inside of a development docker container
#7611
Replies: 3 comments 4 replies
-
@ggoretkin-bdai Thanks for writing in. I converted the issue into a discussion as it did not correspond to a bug or features request. Unfortunately, I do not have an answer for you as no one on our team uses docker for local development. Assuming you are using a Linux image you could investigate how to setup |
Beta Was this translation helpful? Give feedback.
-
For people who are using devcontainers (VS code's variant), there is a feature you can request from within devcontainer.json
https://github.com/devcontainers/features/tree/main/src/github-cli |
Beta Was this translation helpful? Give feedback.
-
I would also like to find a solution for this. |
Beta Was this translation helpful? Give feedback.
-
One approach to using the
gh
CLI from inside a development docker container was to mount the~/.config/gh/hosts.yml
file, as explained in https://dev.to/r7kamura/github-cli-on-devcontainer-3od7 . However, now the secrets are stored in e.g. the GNOME keyring.What is the recommended way to use
gh
from within a development docker container?Beta Was this translation helpful? Give feedback.
All reactions