v17v3/gh
Docker Image for gh (GitHub’s command line tool)
2.9K
GitHub CLI in Docker
This Docker image encapsulates the GitHub CLI (gh
) in a lightweight and portable container, enabling developers and DevOps professionals to interact with GitHub repositories and services directly from Docker environments. Whether you're automating workflows, managing repositories, or integrating with CI/CD pipelines, this Dockerized version of gh
offers the flexibility and convenience of GitHub's command-line interface without the need for local installation.
Features:
GitHub Repository: https://github.com/<your-username>/<your-repo-name>
To pull the Docker image and start using the GitHub CLI, run:
docker pull v17v3/gh:latest
docker run -it v17v3/gh:latest
You can use the GitHub CLI in a Docker container by running:
docker run -it v17v3/gh:latest <command>
For example, to list your repos:
docker run -it v17v3/gh:latest repo list
To authenticate with GitHub using your Dockerized gh
CLI:
docker run -it -e GH_TOKEN="<your-personal-access-token>" v17v3/gh:latest
For more detailed instructions, including building the image and contributing, please visit the GitHub repository linked above.
docker pull v17v3/gh