https://docs.aws.amazon.com/ja_jp/AmazonECR/latest/userguide/docker-basics.html
に従って実施
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
1008 touch Dockerfile 1009 vi Dockerfile 1010 docker build -t hello-world . 1011 docker images --filter reference=hello-world 1014 docker run -t -i -p 10080:80 hello-world 1017 aws ecr create-repository --repository-name hello-repository --region ap-northeast-1 1018 docker tag hello-world xxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/hello-repository 1020 aws --version 1021 docker --version 1025 pip install --upgrade pip --user 1026 pip install awscli --upgrade --user # version up 1028 aws ecr get-login --no-include-email --region ap-northeast-1 1029 docker login -u AWS -p xxxxxxxxxx https://xxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com 1030 docker push xxxxxxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/hello-repository |