Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 521 Bytes

DOCKER-README.md

File metadata and controls

28 lines (21 loc) · 521 Bytes

build image from dockerfile

docker build -t /node-web-app .

list images

docker images

start an image

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

Get container ID

$ docker ps

Print app output

$ docker logs

cmd prompt inside image

docker exec -it /bin/bash

deploy stack

docker stack deploy --compose-file docker-stack.yml cemaritan