Images
docker search NAME_REPOSITORY
Find images in Repository.docker pull NAME_IMAGEN
Download Image from Repository.docker import IMAGE_FILE IMAGE_NAME
Import Images.docker tag IMAGE_ID NEW_IMAGEN_NAME
Tag Image.docker images
List Images.docker inspect IMAGE_NAME
Image Info.docker rmi IMAGE_ID
Remove Image.
Volumes
docker volume create VOLUME_NAME
Create Volume.docker volume ls
List Volumes.docker volume inspect VOLUME_NAME
Path Volume.docker volume rm VOLUME_NAME
Remove Volume.docker volume prune
Remove Unused Volumes.
Networks
docker network create NETWORK_NAME
Create Network.docker network ls
List Networks.docker network rm NETWORK_ID
Remove Network.
Containers
docker ps -a
List Container.docker ps
List Running Container.docker rm CONTAINER_ID
Remove Container.docker container prune
Remove Unused Container.docker container stats CONTAINER_ID
Container Stats.docker container logs CONTAINER_ID
Container Logs.docker container inspect CONTAINER_ID
Container Details.docker container diff CONTAINER_ID
List of Changes in Container.docker container top CONTAINER_ID
List of Container Process.docker container rename OLD_CONTAINER NEW_CONTAINER
Rename Container.docker logs CONTAINER_ID
Container Logs.docker exec -it CONTAINER_NAME COMMAND
Run Command in Container.docker cp PATH_HOST/FILE CONTAINER_ID:PATH_CONTAINER/FILE
Copy Files.docker run IMAGE_ID
Convert Image to Container.-d
detached-e
variables-v volume path
--name CONTAINER_NAME
--network NETWORK_NAME
--cpus="CPU_QUANTITY"
--memory="RAM_QUANTITY"
-p PORT_NUMBER:PORT_NUMBER/PROTOCOL
Configure network.
docker start CONTAINER_ID
Start Container.docker restart CONTAINER_ID
Restart Container.docker pause CONTAINER_ID
Pause Container.docker unpause CONTAINER_ID
Unpause Container.docker stop CONTAINER_ID
Stop Container.docker commit CONTAINER_ID
Create Image of a Working Container.docker export CONTAINER_ID /PATH/file.tar
Export Container to Tarball.
You can replace CONTAINER_ID by CONTAINER_NAME