Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 336 Bytes

04_docker.md

File metadata and controls

27 lines (14 loc) · 336 Bytes

Docker

Build image

$ docker build -t <image_name>:<tag_name> <context>

eg:

$ docker build -t ubuntu-node:0.1 .

Run container

$ docker run -d -p 8000:8000 ubuntu-node:0.1

Misc

See running container

$ docker ps

Check logs

$ docker logs <container_id>

Stop container

$ docker stop <container_id>