-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecrr
23 lines (13 loc) · 1.1 KB
/
ecrr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html
Ensure you have installed the latest version of the AWS CLI and Docker. For more information, see the ECR documentation .
Retrieve the login command to use to authenticate your Docker client to your registry.
Use the AWS CLI:
$(aws ecr get-login --no-include-email --region us-west-2)
Note: If you receive an "Unknown options: --no-include-email" error when using the AWS CLI, ensure that you have the latest version installed. Learn more
Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here
. You can skip this step if your image is already built:
docker build -t cloudgeeks.ca/ecs .
After the build completes, tag your image so you can push the image to this repository:
docker tag cloudgeeks.ca/ecs:latest 898668804275.dkr.ecr.us-west-2.amazonaws.com/cloudgeeks.ca/ecs:latest
Run the following command to push this image to your newly created AWS repository:
docker push 898668804275.dkr.ecr.us-west-2.amazonaws.com/cloudgeeks.ca/ecs:latest