Skip to content

Instantly share code, notes, and snippets.

@cirocosta
cirocosta / get-image-config.sh
Created May 24, 2017 14:09
Retrieve image configuration from Docker Hub Registry
#!/bin/bash
set -o errexit
main() {
check_args "$@"
local image=$1
local tag=$2
local token=$(get_token $image)