Skip to content

Instantly share code, notes, and snippets.

@chaliy
Last active August 30, 2018 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chaliy/a6d41d117ae52142b7d3f9ef92f41404 to your computer and use it in GitHub Desktop.
Save chaliy/a6d41d117ae52142b7d3f9ef92f41404 to your computer and use it in GitHub Desktop.
Oneliner that replicates `aws ecr get-login` for `az acr`
az acr credential show -n mysuperpuperregistry \
--query "join(' ', ['docker login mysuperpuperregistry-on.azurecr.io', '-u', username, '-p', password])" \
--output tsv | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment