$ git clone https://github.com/ikeyasu/sagemaker-rl-container.git
- Create ECR repository named sagemaker-rl-chainerrl and copy your repository name like
xxxx.dkr.ecr.ap-northeast-1.amazonaws.com/sagemaker-rl-chainer
. $ cd sagemaker-rl-container
$ docker build -t sagemaker-rl-chainer:chainerrl0.5.0-cpu-py3 -f chainerrl/docker/0.5.0/Dockerfile --build-arg processor=cpu .
$ docker tag sagemaker-rl-chainer:chainerrl0.5.0-cpu-py3 xxxx.dkr.ecr.ap-northeast-1.amazonaws.com/sagemaker-rl-chainer:chainerrl0.5.0-cpu-py3
- Please relace to your repository name
$ docker push sagemaker-rl-chainer:chainerrl0.5.0-cpu-py3 xxxx.dkr.ecr.ap-northeast-1.amazonaws.com/sagemaker-rl-chainer:chainerrl0.5.0-cpu-py3
Note that you need to log-in to push ECR. Please refer to AWS document.