Package: docker-hub
Docker Hub CLIA CLI tool to access Docker Hub from your terminal.InstallationNote: Minimum Python 3.7 is required.You should have pip installed in your system.pipinstalldocker-hubIf you have Python 2 also in the system do:pip3installdocker-hubUsage1. Authenticate with Docker HubIf you are already logged in usingdocker logincommand, then the token in Docker engine config will be used. Otherwise you can choose to proceed without authenticating which will query docker hub without token and list only public resources. To authenticate for viewing private resources dodocker-hub logincommand; this will save auth token indocker-hub's config file so that you don't need to login every time.If you want to authenticate for the only current command (to not persist auth tokens in config), make use of the following env variables:DOCKER_HUB_USERNAME- Your Docker Hub usernameDOCKER_HUB_PASSWORD- Your Docker Hub passwordPass the mentioned envs with your command and docker-hub will try to do authentication without prompting for credentials.e.g.:DOCKER_HUB_USERNAME=helloDOCKER_HUB_PASSWORD=worlddocker-hubrepos--orgnamedocker2. Querying an organization for repositoriesTo query repositories in an organization usereposargument. The organization to query can be passed as--orgnameor-oparameter.e.g.: Get repos in organization named "docker"docker-hubrepos--orgnamedocker3. Querying the tags of a repositoryTo query tags of a repository usetagsargument. The organization of repository can be passed as--orgnameor-oparameter. The repository to query can be passed as--reponameor-rparameter.e.g.: Get tags of repository "ucp" in organization named "docker"docker-hubtags--orgnamedocker--reponameucpIf you want to display all pages result then use option--all-pagesor-adocker-hubtags--orgnamedocker--reponameucp--all-pages4. Querying a user profileTo query a user profile useusersargument. The username to query can be passed as--usernameor-uparameter.e.g.: Get profile of user named "docker"docker-hubusers--usernamedocker5. Querying the auto-builds of a repositoryTo query auto-builds of a repository usebuildsargument. The organization of repository can be passed as--orgnameor-oparameter. The repository to query can be passed as--reponameor-rparameter.e.g.: Get build of repository "ucp" in organization named "docker"docker-hubbuilds--orgnamedocker--reponameucp6. Querying an organization for auto-build queueTo query the auto-build repositories with pending builds use thequeueargument. The organization to query can be passed as--orgnameor-oparameter.e.g.: Get the building queue for organization named "docker"docker-hubqueue--orgnamedocker7. Setting and getting config valuesConfig values can be set or get usingconfigargument. Currently supported config names:orgname - orgname to use in case of--orgnameis not provided.A config can be set usingsetcommand and passing config name along with it's corresponding value.e.g.: Set value for config "orgname"docker-hubconfigsetorgnamedockerA config value can be get usinggetcommand and passing config name.e.g.: Get value for config "orgname"docker-hubconfiggetorgnameTo list all config values that are currently present:docker-hubconfigNotes:Only 15 results will be displayed at once. You can fetch remaining pages by passing--pageor-pparameter.e.g.: Get 3rd pagedocker-hubrepos--orgnamedocker--page3The results can be displayed in 2 formats:json - Displays result as JSON string.table - Displays results as nicely formatted table.--formator-fparameter can be used to specify the format in which result must be displayed.e.g.:Display in json formatdocker-hubrepos--orgnamedocker--formatjsonDisplay in table formatdocker-hubrepos--orgnamedocker--formattableDevelopmentQuestions, problems or suggestions? Please post them on theissue tracker.You can contribute changes by forking the project and submitting a pull request. Feel free to contribute :heart_eyes:UNDER MIT LICENSEThe MIT License (MIT)Copyright (c) 2016 Amal FrancisPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.