Container Commands
docker pull
: Download an imagedocker run
: Run a command in a new container-p
expose/forward network ports-it
(technically two options) that let you run an interactive shell in a container--rm
remove the container after it runs
docker exec
: Run a command in an already-running containerdocker ps
: List the running containersdocker container stop
: Stop a running container
13 / 24