It's basic node(express) app
42
docker build . -t actionanand/node-goal-app:tagname
docker pull actionanand/node-goal-app
or
docker pull actionanand/node-goal-app:tagname
docker run -d -p 3001:80 --rm --name node-goal-app actionanand/node-goal-app:tagname
docker tag local-image:tagname new-repo:tagname
docker push actionanand/node-goal-app:tagname
http://localhost:3001/
docker ps: List all running containers
-a : List all containers - including stopped onesdocker images : List all locally stored imagesdocker stop my_container : Stops the running container with the name 'my_container' or IDdocker rm CONTAINER : Remove a container with name CONTAINER (you can also use the
container id). You can use multiple container name or ID followed by white space. SO docker rm CONTAINER_1 CONTAINER_2 CONTAINER_3docker rmi IMAGE : Remove an image by name / id. You can use multiple image name or ID followed by white space.docker container prune : Remove all stopped containersdocker image prune : Remove all dangling images (untagged images)
-a : Remove all locally stored imagesdocker attach container_name: Will attach the container againdocker logs container_name: Will print logs by the container
-f : follow tag will attach it again to print the future logs in terminalContent type
Image
Digest
sha256:2f55d5737…
Size
337.1 MB
Last updated
almost 3 years ago
docker pull actionanand/node-goal-app:1