Code Monkey home page Code Monkey logo

search-dockerhub's Introduction

Shell functions to list tags and supported CPU architectures for Docker Hub images

search-dockerhub.sh defines two shell-functions, docker-list-tags and docker-inspect-architecture.

docker-list-tags

Usage

docker-list-tags-usage [-j|--json] [-n|--with-name] [<NAMESPACE>/]<IMAGE>

Argument Specifications

  • <NAMESPACE> : Docker Hub namespace or username (default: library)
  • <IMAGE> : Docker image name (mandatory)

Options

  • -j, --json : Output the result in JSON format
  • -n, --with-name : Include the image name in the output
  • -h, --help : Show this help message and exit

Examples

# List all tags for 'library/ubuntu'
docker-list-tags ubuntu
# List all tags for 'mysql/mysql-server' as JSON
docker-list-tags -j mysql/mysql-server

docker-inspect-architecture

Usage

docker-inspect-architecture [<NAMESPACE>/]<IMAGE>[:<TAG>]

Argument Specifications

  • <NAMESPACE> : Docker Hub namespace or username (default: library)

  • <IMAGE> : Image name (mandatory)

  • <TAG> : Tag name (default: latest)

Examples

# Inspect architectures of library/ubuntu:latest
docker-inspect-architecture ubuntu
# Inspect architectures of library/ubuntu:22.04
docker-inspect-architecture ubuntu:22.04
# Inspect architectures of mysql/mysql-server:latest
docker-inspect-architecture mysql/mysql-server
# Inspect architectures of mysql/mysql-server:8.0
docker-inspect-architecture mysql/mysql-server:8.0

Requirements

  • Bash or Zsh
  • curl
  • jq

Details

See my blog entry (in Japanese) for more information.

License

MIT License

search-dockerhub's People

Contributors

doratex avatar

Stargazers

Satoshi Takahashi avatar

Watchers

 avatar

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.