Skip to content

Instantly share code, notes, and snippets.

@binhqd
Last active July 21, 2023 03:49
Show Gist options
  • Save binhqd/e1b383259ecc2c5777f94710fa964d63 to your computer and use it in GitHub Desktop.
Save binhqd/e1b383259ecc2c5777f94710fa964d63 to your computer and use it in GitHub Desktop.
Guideline to push docker image to AWS ECR

Tag a local docker

docker tag nal-goaccess:1.0 <account_id>.dkr.ecr.ap-northeast-1.amazonaws.com/goaccess-ubuntu:v1.0

Login

aws ecr get-login-password --profile <aws_profile> --region ap-northeast-1 | docker login --username AWS --password-stdin <account_id>.dkr.ecr.ap-northeast-1.amazonaws.com

Push to ECR

docker push <account_id>.dkr.ecr.ap-northeast-1.amazonaws.com/goaccess-ubuntu:v1.0

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