LuckyIndraEfendi / AWS-DynamoDB-Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Serverless Application with Express JS & DynamoDB Database

Build Docker Application & Tagging a Docker Images

Example :

docker build . -t yourusername/yourapp

Showing the Docker image after building and tagging

docker images

Here you can see a docker images

REPOSITORY   TAG   IMAGE   ID   CREATED   SIZE
yourusername/example-node-app latest be083a8e3159 7 minutes ago 83.2MB

Running or Testing a Docker image

docker run -p8080:8080 yourusername/yourapp

To run the container in a detached mode, you can supply argument -d

docker run -d -p8080:8080 yourusername/yourapp

Tag your image with the Amazon ECR registry, repository, and optional image tag name combination to use

docker tag e9ae3c220b23 aws_account_id.dkr.ecr.us-west-2.amazonaws.com/my-repository:tag

Pushing a Docker image to the Docker repository

docker push aws_account_id.dkr.ecr.us-west-2.amazonaws.com/my-repository:tag

Let's Push your Docker Images using ECS, For Reverence you can see here

Follow Link Here : Follow Link

About


Languages

Language:JavaScript 98.1%Language:Dockerfile 1.9%