AWS ECR/ECS

ECR 操作记录:

1.创建存储库


2.查看操作命令
使用AWS CLI:

aws ecr get-login --no-include-email --region us-east-2

得到以下结果:

docker login -u AWS -p eyJkIj...0MDfQ== https://xxxxxxx.dkr.ecr.us-east-###2.amazonaws.com

IDEA 设置Docker Register
username: AWS
password: eyJkIj...0MDfQ==
address: https://xxxxxxx.dkr.ecr.us-east-2.amazonaws.com
email: AWS

3.tag指令

docker tag [image:latest] [Repository URI]:[tagName]
例如:
docker tag nginx:latest xxxxxxx.dkr.ecr.us-east-2.amazonaws.com/repositoryName:nginx-test

4.push指令

docker push [Repository URI]:[tagName]
例如:
docker push xxxxxxx.dkr.ecr.us-east-2.amazonaws.com/repositoryName:nginx-test

5.IDEA push

你可能感兴趣的:(AWS ECR/ECS)