docker images
|
List all images present on host.
|
docker rmi
|
To remove an image you no longer plan to use.
|
docker run [image]
|
Start a container of the image [image]. If the image is not present on the host, it will go out to docker hub and pull the image down, it's only done the first time. For the subsequent executions, the same image will be re-used.
|
docker run [image] -d
|
Start a container of the image docker run [image] in detached mode = in the background.
|
docker run -p [src]:[dst] [image] -d
|
Like rStart a container of the image docker run [image] in detached mode = in the background.
|
docker pull [image]
|
Like docker run but only pull the [image], not run it.
|
docker exec [container name] [command]
|
Runs the command [command] on a running container.
|
docker ps
|
List all running containers with informations such as container id, the image used for it.
|
docker ps -a
|
To see all containers running or not.
|
docker ps
|
A collection of related Docker images, often different versions of the same application.
|
docker stop [name]
|
To stop a running container.
|
docker rm [name]
|
rm = remove container. To remove a stopped or exited container permanently = stop using space.
|
docker rmi
|
rmi = "remove images". To remove an image you no longer plan to use.
|
docker rmi
|
To remove an image you no longer plan to use.
|