Build custom image for app
docker build -t jekyll-app .
Run the app non-interactively
docker run -d -p 4000:4000 \
--name jekyll-app-container \
--mount type=bind,source="$(pwd)",destination=/usr/src/app \
jekyll-app
Execute a shell in an already running container
docker exec -it jekyll-app-container bash
Stop the container
docker stop jekyll-app-container
Remove the container
docker rm jekyll-app-container
Stop and remove
docker stop jekyll-app-container && docker rm jekyll-app-container
Stop, remove, and restart
docker stop jekyll-app-container && docker rm jekyll-app-container && docker run -d -p 4000:4000 --name jekyll-app-container --mount type=bind,source="$(pwd)",destination=/usr/src/app jekyll-app