Skip to content

tienvd1994/docker-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-sample

docker-sample

Building your image

docker build -t node-web-app .

Run the image

Running your image with -d runs the container in detached mode, leaving the container running in the background. The -p flag redirects a public port to a private port inside the container. Run the image you previously built:

  • docker run -p 49160:8080 -d /node-web-app

Print the output of your app:

Get container ID

  • docker ps

Print app output

  • docker logs

Test

curl -i localhost:49160

About

docker-sample

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published