Skip to content

Commit

Permalink
Create commands.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-veeramalla authored Aug 1, 2023
1 parent ade8fd8 commit dd61782
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions day-21/commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Login to ECR (replace <region> and <account-id> with your actual values)
$ aws ecr get-login-password --region <region> | docker login --username AWS --password-stdin <account-id>.dkr.ecr.<region>.amazonaws.com

# Build the Docker image (replace <repo-name> with your ECR repository name)
$ docker build -t <account-id>.dkr.ecr.<region>.amazonaws.com/<repo-name>:latest .

# Push the Docker image to ECR (replace <repo-name> with your ECR repository name)
$ docker push <account-id>.dkr.ecr.<region>.amazonaws.com/<repo-name>:latest

0 comments on commit dd61782

Please sign in to comment.