Categorygithub.com/victorbersy/docker-hub-cli
repositorypackage
0.3.0
Repository: https://github.com/victorbersy/docker-hub-cli.git
Documentation: pkg.go.dev

# README

Docker Hub CLI

build

CLI that helps users manage and browse Docker Hub resources (repositories, organizations, members, etc...)

image

Launch

Go

go install github.com/victorbersy/docker-hub-cli@latest
docker-hub-cli

Docker

# Docker Hub
docker pull victorbersy/docker-hub-cli:latest
docker run --rm -it victorbersy/docker-hub-cli

# Github Container Registry
docker pull ghcr.io/victorbersy/docker-hub-cli:latest
docker run --rm -it ghcr.io/victorbersy/docker-hub-cli

Authentication

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=victorbersy go run main.go

or with a compiled version:

$ DOCKER_BEARER=$DOCKER_BEARER DOCKER_USERNAME=victorbersy ./docker-hub-cli

To get your Bearer token:

$ username=victorbersy \
  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

Screenshots

Dark default theme

image image

Light default theme

image image

Credits