Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to create an image and deploy to AWS ECR

  1. Retrieve an authentication token and authenticate your Docker client to your registry. Use the AWS CLI:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 255945442255.dkr.ecr.us-east-1.amazonaws.com

Note: If you receive an error using the AWS CLI, make sure that you have the latest version of the AWS CLI and Docker installed.

  1. Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here . You can skip this step if your image is already built:

docker build -t node-docker-leon .

  1. After the build completes, tag your image so you can push the image to this repository:

docker tag node-docker-leon:latest 255945442255.dkr.ecr.us-east-1.amazonaws.com/node-docker-leon:latest

  1. Run the following command to push this image to your newly created AWS repository:

docker push 255945442255.dkr.ecr.us-east-1.amazonaws.com/node-docker-leon:latest

Steps to run ECR image

docker run -d -p 8080:3000 255945442255.dkr.ecr.us-east-1.amazonaws.com/node-docker-leon:latest

image

image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages