Git Product home page Git Product logo

dha's Introduction

dha

Docker Hub Administrator command line tool

Get

git clone [email protected]:ealebed/dha.git
cd dha
go install github.com/ealebed/dha

Set your dockerhub login/password as env-variables

export DOCKERHUB_USERNAME=
export DOCKERHUB_PASSWORD=

Use

dha -h

Syntax

Use the following syntax to run dha commands from your terminal window:

dha [command] [flags]

Flags are

flag Description
--dry-run bool; print output only (default true)
--org string; source owner user/organization (default "DOCKERHUB_USERNAME")
--version dha version

Commands are

command Description
delete, del delete the specified dockerhub repository
describe returns information about the specified dockerhub repository
get returns list tags from the specified dockerhub repository
list, ls returns list of all dockeruhub repositories
truncate truncate tags in the specified docker image repository
help help about any command

Manage Docker images

# Delete the specified docker image repository from DockerHub.
dha delete --image=airflow --dry-run=false

# List all image repositories (and count tags in square brackets) from DockerHub.
dha list

# Get detailed information about the specified docker image repository on DockerHub.
dha describe --image=airflow

# Get tags from the specified docker image repository on DockerHub.
dha get --image=airflow

# Truncate inactive image tags (tags that haven't been pushed or pulled in over a month) in the specified docker image repository on DockerHub.
dha truncate --image=airflow --inactive=true --dry-run=false

# Truncate tags in the specified docker image repository on DockerHub by regEx.
dha truncate --image=airflow --regEx=dev --dry-run=false

# Truncate tags in all docker image repositories on DockerHub by regEx.
dha truncate --all --regEx=cron --dry-run=false

# Truncate inactive image tags in all docker image repositories on DockerHub.
dha truncate --all --inactive --dry-run=false

# Truncate image tags by regEx in docker image repositories regEx matched on DockerHub.
dha truncate --imageRegEx=ads-user-management --tagRegEx=20.11 --dry-run=false

# Truncate inactive image tags in docker image repositories regEx matched on DockerHub.
dha truncate --imageRegEx=ads-user-management --inactive --dry-run=false

# Renew (pull/push) tags in the specified docker image repository on DockerHub.
dha renew --image=sentinel-dashboard --dry-run=false

# Renew (pull/push) tags in all organization repositories on DockerHub.
dha renew --all --dry-run=false

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.