docker buildしてECRにpushする

LINEで送る
Pocket

  • build
$ docker build -t app nginx/
$ docker build -t mysql mysql/
  • push
$(aws ecr --profile xxx get-login --no-include-email --region ap-northeast-1)

$ docker commit mysql xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/app:latest
$ docker push xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/app:latest

$ docker commit mysql xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/mysql:latest
$ docker push xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/mysql:latest

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *