Skip to content

Instantly share code, notes, and snippets.

@xiamaz
Last active June 22, 2018 10:52
Show Gist options
  • Save xiamaz/58baa7d6b280d690df154a6eb69d747c to your computer and use it in GitHub Desktop.
Save xiamaz/58baa7d6b280d690df154a6eb69d747c to your computer and use it in GitHub Desktop.
Login to ECR in Skopeo
skopeo inspect --creds=AWS:( aws ecr get-login | grep -Po '(?<=\-p )\w+') docker://<REGISTRY_URL>
@xiamaz
Copy link
Author

xiamaz commented Jun 22, 2018

Directly getting the token from AWS is longer and returns base60 encoded keys, thus it will not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment