Commands
List all the images
docker imagesDownload image
# docker pull [image]
docker pull mysqlDelete image
# docker image rm [image]
# docker image rm [image]:[tag]
docker image rm mysql
docker image rm mysql:latest
docker image rm mysql:16Create a container with the image
With random container name
With custom container name
Start a container
Using the ID of the container
Using the custom name of the container
Using environment variables
Status of containers running
Stop a container
List of containers started and off
Delete a container
Using name
Expose a container in a host port
Custom port
Random port
Check logs of container
Download the image, create and start the container
With logs view, random data
Without logs view, detach mode and random data
Without logs view and custom data
Interact with networks
List networks
Create a network
Delete a network
Last updated