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:
builderManage buildsconfigManage Docker configscontainerManage containersengineManage the docker engineimageManage imagesnetworkManage networksnodeManage Swarm nodespluginManage pluginssecretManage Docker secretsserviceManage servicesstackManage Docker stacksswarmManage SwarmsystemManage DockertrustManage trust on Docker imagesvolumeManage volumes
docker image:buildBuild an image from a dockerfilehistoryShow the history of an imageimportImport the contents from a tarball to create a filesystem imageinspectDisplay detailed information on one or more imagesloadLoad an image from a tar file or STDINlsList imagespruneRemove unused imagespullPull an image or a repository from a registrypushPush an image or a repository to a registryrmRemove one or more imagessaveSave one or more images to a tar file (streamed to STDOUT by default)tagCreate a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker container:attachAttach local standard input, output, and error streams to a running containercommitCreate a new image from a container's changescpCopy files/folders between a container and the local filesystemcreateCreate a new containerdiffInspect changes to files or directories on a container's filesystemexecRun a command in a running containerexportExport a container's filesystem as a tar archiveinspectDisplay detailed information on one or more containerskillKill one or more running containerslogsFetch the logs of a containerlsList containerspausePause all processes within one or more containersportList port mappings or a specific mapping for the containerpruneRemove all stopped containersrenameRename a containerrestartRestart one or more containersrmRemove one or more containersrunRun a command in a new containerstartStart one or more stopped containersstatsDisplay a live stream of container(s) resource usage statisticsstopStop one or more running containerstopDisplay the running processes of a containerunpauseUnpause all processes within one or more containersupdateUpdate configuration of one or more containerswaitBlock until one or more containers stop, then print their exit codes