Docker commands cheat sheet
Topic: #docker
Example creating/running a docker image called api
.
# build a container
docker build -t api:latest .
# run docker container
docker run -d -p 3000:3000 --name api huntnv-api:latest
# connect shell within container
docker exec -it api /bin/sh
# stop running container
docker container stop api
# remove container
docker container rm api