reference: thenewboston
docker container ls -a
docker image ls -a
docker container run imageID/imageTag *optionalCMD
docker container create imageID/imageTag # create only the container but it will not run it
docker container start -a containerID/containerTag # -a shows logs
docker container stop containerID/containerTag
docker container kill -f containerID/containerTag
docker container rm containerID/containerTag
docker container inspect containerID/containerTag
docker system prune --all # clear all unused resources
docker exec -it containerID sh
docker build -t userName/project-name . # don't forget the .
docker run -p localPortNum:containerPortNum imageID/imageTag
docker run -v $(pwd):containerFilePath -p localPortNum:containerPortNum imageID/imageTag
# %cd% for windows