Skip to content

Instantly share code, notes, and snippets.

View rsmartins78's full-sized avatar

Rafael Martins rsmartins78

View GitHub Profile
@rsmartins78
rsmartins78 / rancher-get-info.sh
Created April 12, 2018 15:36 — forked from usmanismail/rancher-get-info.sh
A curl wrapper to get container info from the rancher API
#!/bin/sh
usage(){
echo "Usage: $0 ACCESS_KEY ACCESS_SECRET CONATAINER_ID"
exit 1
}
# call usage() function if filename not supplied
[[ $# -ne 3 ]] && usage