Skip to content

Instantly share code, notes, and snippets.

@madsonic
Created October 10, 2019 09:48
Show Gist options
  • Select an option

  • Save madsonic/187a5029ada7bf1e9bdf1657318df411 to your computer and use it in GitHub Desktop.

Select an option

Save madsonic/187a5029ada7bf1e9bdf1657318df411 to your computer and use it in GitHub Desktop.
dockerconfigjson
# create dockerconfigjson from scratch
cat <<EOF >> dockerconfigjson
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "$(base64 --input=credfile)"
}
}
}
EOF
# credfile content
username:password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment