Skip to main content

Posts

Showing posts from September, 2017

Push and pull docker images on Amazon ECR via aws client

Open cygwin terminal $ cd /cygdrive/c/projects $ docker-machine env default  && eval $("docker-machine.exe" env default) Create new nodejs express web application with ejs $ npm install -g express-generator $ express --view=ejs ecrtest For automaticly create Docker file install generator $ npm install -g generator-docker $ npm install -g yo Run generator with yo $ yo docker Build docker image with 1.0 tag $ docker build -t mycmp/ecrtest:1.0 . Run docker image $ docker run -p 3000:3000 mycmp/ecrtest:1.0 For image push ECR, we need to aws configure $ aws configure      AWS Access Key ID [****************EWAQ]: ************************      AWS Secret Access Key [****************eYKe]: ************************      Default region name [eu-west-1]:      Default output format [None]: Docker needs to be logged into the registry. The aws client can output the required docker...