2021-08-09
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
mitchell@gritts.me
Built by me. Writing and images are my original work unless otherwise noted. Please attribute this site when sharing.
This content served from this URL (mitchell.gritts.net) is licensed with the Unlicense. Content served from other URLs may have other licenses. The repo is currently private while I actively build out the site.