A simple node express app developed using docker
92
This is a simple hello world project developed to demonstrate how to create nodeJS images in docker.
git clone https://[email protected]/sharma02gaurav/node-app-docker.git
docker build -t [your-image-name] .
This will build the image for you.
docker run -p [access-port]:[redirect-port] [your-image-name]
docker tags [your-image-name]:[label] [docker-user-name]/[repo-name]
docker push [docker-user-name]/[repo-name]
Create DigitalOcean account. Use referral account to get 10$ credit. Here is mine Sign up using this to get 10$ credit on Digital Ocean
Create a Docker droplet.
Log into Docker from terminal using ssh.
Run following command to start image in container
docker run -p [incoming-port]:[redirect-port] [docker-user-name]/[repo-name]
for example
docker run -p 80:4300 sharma02gaurav/my-node-app
Content type
Image
Digest
Size
250.9 MB
Last updated
about 9 years ago
docker pull sharma02gaurav/node-app-docker