docker pull jturping/hollywood
- Pull an image or a repository from a registry
docker inspect node:12-stretch
- Outputs metadata about the container
docker ps
- list all running containers
docker run ubuntu:bionic
- runs the container
docker run -it ubuntu:bionic
- runs the container and connects to it in bash with the -it flag
docker run -it --detach ubuntu:bionic
- runs the container in background with --detach or -dit flag
docker run -it -detach --name my-container alpine:3.10
- runs the container with a --name flag
docker run -it -detach --name my-container --rm alpine:3.10
- --rm flag removes all the metadata when the container is killed
docker attach d226d5498cd4
- connects to a container running in the background using the container id from
docker ps
or name
- connects to a container running in the background using the container id from
docker kill d226d5498cd4
- kill the running container using the container id from
docker ps
or name
- kill the running container using the container id from
docker kill $(docker ps -q)
- kill all the running containers
docker rm my-container
- removes the metadata from a container using the container id from
docker ps
or name
- removes the metadata from a container using the container id from
docker pause d226d5498cd4
- Pause all processes within one or more containers using the container id from
docker ps
or name
- Pause all processes within one or more containers using the container id from
docker unpause d226d5498cd4
- Unpause all processes within one or more containers using the container id from
docker ps
or name
- Unpause all processes within one or more containers using the container id from