docker image -h
docker image ls -h
docker image ls
docker image pull nginx
docker image ls
docker image inspect image_id
docker container -h
docker container ls
docker container run busybox
docker container ls
docker container ls -a
docker container run -P -d nginx
docker container ps
docker container inspect container_id
curl http://172.17.0.2
docker container inspect container_id
docker container top container_id
docker container ls
docker container attach container_id
docker container ls
docker container ls -a
docker container start container_id
docker container ls
docker container stop container_id
docker container start container_id
docker container logs container_id
docker container ls
curl localhost:32774
docker container logs container_id
docker container ls
docker container stats container_id
docker container exec -it container_id /bin/bash
# ls
# ls /usr/share/nginx/html/
# exit
docker container ls
docker container exec -it container_id ls /usr/share/nginx/html/
docker container ls
docker container pause container_id
docker container ls
docker container unpause container_id
docker container ls -a
docker container rm -f container_id
docker container ls -a
docker container prune
docker container ls -a
docker container prune -h
docker container prune -f
===Summary===
Get a list of all of the Docker commands:
docker -h
Management command were introduced in Docker engine v1.13
Management Commands:
builder
Manage buildsconfig
Manage Docker configscontainer
Manage containersengine
Manage the docker engineimage
Manage imagesnetwork
Manage networksnode
Manage Swarm nodesplugin
Manage pluginssecret
Manage Docker secretsservice
Manage servicesstack
Manage Docker stacksswarm
Manage Swarmsystem
Manage Dockertrust
Manage trust on Docker imagesvolume
Manage volumes
docker image
:build
Build an image from a dockerfilehistory
Show the history of an imageimport
Import the contents from a tarball to create a filesystem imageinspect
Display detailed information on one or more imagesload
Load an image from a tar file or STDINls
List imagesprune
Remove unused imagespull
Pull an image or a repository from a registrypush
Push an image or a repository to a registryrm
Remove one or more imagessave
Save one or more images to a tar file (streamed to STDOUT by default)tag
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker container
:attach
Attach local standard input, output, and error streams to a running containercommit
Create a new image from a container's changescp
Copy files/folders between a container and the local filesystemcreate
Create a new containerdiff
Inspect changes to files or directories on a container's filesystemexec
Run a command in a running containerexport
Export a container's filesystem as a tar archiveinspect
Display detailed information on one or more containerskill
Kill one or more running containerslogs
Fetch the logs of a containerls
List containerspause
Pause all processes within one or more containersport
List port mappings or a specific mapping for the containerprune
Remove all stopped containersrename
Rename a containerrestart
Restart one or more containersrm
Remove one or more containersrun
Run a command in a new containerstart
Start one or more stopped containersstats
Display a live stream of container(s) resource usage statisticsstop
Stop one or more running containerstop
Display the running processes of a containerunpause
Unpause all processes within one or more containersupdate
Update configuration of one or more containerswait
Block until one or more containers stop, then print their exit codes