CLI that helps users manage and browse Docker Hub resources (repositories, organizations, members, etc...)
go install github.com/AlyxPink/docker-hub-cli@latest
docker-hub-cli
# Docker Hub
docker pull AlyxPink/docker-hub-cli:latest
docker run --rm -it AlyxPink/docker-hub-cli
# Github Container Registry
docker pull ghcr.io/AlyxPink/docker-hub-cli:latest
docker run --rm -it ghcr.io/AlyxPink/docker-hub-cli
The authentication system is rough at the moment. Hopefully, it will be better soon. Meanwhile, here's how to authenticate:
Set DOCKER_BEARER
with your token and launch the program:
$ DOCKER_BEARER=$DOCKER_BEARER DOCKER_USERNAME=AlyxPink go run main.go
or with a compiled version:
$ DOCKER_BEARER=$DOCKER_BEARER DOCKER_USERNAME=AlyxPink ./docker-hub-cli
To get your Bearer token:
$ username=AlyxPink \
password=my_docker_pat_token \
curl -s 'https://hub.docker.com/api/v2/users/login' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"username":"'$username'","password":"'$password'"}' | jq -r .token
To generate your Personal Access Token (PAT): hub.docker.com/settings/security
- Heavily inspired from gh-dash created by @dlvhdr
- bubbletea by Charm
- glamour by Charm
- lipgloss by Charm
- Docker Hub