Last active
August 30, 2018 20:30
-
-
Save chaliy/a6d41d117ae52142b7d3f9ef92f41404 to your computer and use it in GitHub Desktop.
Oneliner that replicates `aws ecr get-login` for `az acr`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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