-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Docker build creates the image from which to start the container
Docker build reference: https://docs.docker.com/engine/reference/commandline/build/
Docker run starts a new container from the specified image
Docker run reference: https://docs.docker.com/engine/reference/run/ (you definitely should check out -it, -p, and -d)
docker images shows all images
docker ps shows running container
docker ps -a shows all containers
docker stop stops a container (use tab button to select)
docker start restarts a stopped container (use tab button to select)
docker exec -it <container name> bash let's you enter a running container
if you are in a container and want to get out, type ctrl + p , ctrl + q
docker container rm removes a container (use tab button to select)
docker container prune purges all containers
docker rmi removes an image (use tab button to select)