Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

AlyxPink/docker-hub-cli

Repository files navigation

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/AlyxPink/docker-hub-cli@latest
docker-hub-cli

Docker

# 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

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=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

Screenshots

Dark default theme

image image

Light default theme

image image

Credits

About

CLI to explore and manage Docker Hub resources.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •