/dockerize-nodejs-app

experimenting about docker containerization with a simple nodejs server.

Primary LanguageJavaScript

learning docker

build docker image

docker build -t checkiamsiam/dockerize-nodejs-server .

See docker images

docker images

rebuild docker image

docker build -t checkiamsiam/dockerize-nodejs-server:another-tag-name .

push docker image

docker push checkiamsiam/dockerize-nodejs-server:latest

pull docker image

docker pull checkiamsiam/dockerize-nodejs-server:latest

run docker image from docker hub

docker run -p 5000:3000 -d checkiamsiam/dockerize-nodejs-server:latest

running docker containers

docker ps -a

stop docker container

docker stop <container id>

remove docker container

docker container rm <container id>

remove docker image

docker image rm <image id>

remove all docker images and containers

docker system prune -a