pause: Stop All Processes syntax for a container: ocker pause container [ CONTAINER ...] port: lists port mappings for containers, or view NAT mappings for specified open ports Syntax:docker port [--help] container [private_port[/proto]]ps: list containers grammar: Docker ps [-a|--all[=false]] [--before[=before]] [--help] [-f|--filter[=[]]] [-l|--latest[=false]] [-n[=-1]] [--no-trunc[=false]] [-q|--quiet[=false]] [-s|--size[=false]] [--since[=SINCE]] configuration Directive: -a --all=true|false #默认为false, show only containers in operation --before= "" #指定只显示指定ID或NAME之前运行的容器 (excluding yourself), including non-running --help #查看帮助 -f --filter=[] #指定过滤, e.g.: exited=<int> #容器退出状态 label=<key> or label=<key>=<value> #容器标签 status= (restarting|running|paused|exited) #容器状态 name=< string> #容器名称 id=<ID> #容器ID -l --latest=true|false #默认为false, view newly created containers -n=1 #查看最新创建的n个容器 --no-trunc=true|false #默认为false, do not truncate the output, display the complete container information -q --quiet=true|false #默认为false, True when only the container is displayed id -s --size= true|false #默认为false, True when the container capacity information is displayed -- Since= "" #和before相反, displays only containers that are running after the specified ID or name (excluding themselves), including pull: that are not running Download a repository or mirror grammar:docker pull [-a|--all-tags[=false]] [--help] from the registry name[:tag] | [registry_host[:registry_port]/]name[:tag] configuration Directive: -a --all-tags=true|false #从仓库下载所有带有tag记号的镜像, The default is false --help #查看帮助push: upload an image or warehouse to the registry, notice that the modified mirrorsLike if you want to commit, please perform the commit operation syntax: docker push [--help] name[:tag] | [ registry_host[:registry_port]/]name[:tag]rename: Renaming a container Syntax:docker rename old_name new_namerestart: restart a container Syntax: Docker restart [--help] [-t|--time[=10]] container [container ...] configuration directive: --help # View Help -t --time=10 # Wait (default) 10 seconds before closing rm: delete one or more containers syntax: docker rm [-f|-- Force[=false]] [-l|--link[=false]] [-v|--volumes[=false]] container [container ...] configuration directive: --help # View Help -f --force=true|false #默认为false, forcing the removal of a running container without adding this option is not possible to delete a running container -l --link=true|false #默认为false, delete an instruction link, and it does not already exist for the underlying container -v --volumes=true|false #默认为false, Remove the container associated with this container rmi: remove one or more mirrors syntax from the current host node: docker rmi [-f|-- Force[=false]] [--help] [--no-prune[=false]] image [image ...] -f --force=true|false #默认为false, Force Delete, do not add this option is a mirror of a running container that cannot be deleted --help # View Help --no-prune=true|false #默认为false, Do not delete untagged dependencies run: execute commands syntax in a new container: docker run [-a|-- Attach[=[]]] [--add-host[=[]]] [--blkio-weight[=[blKio-weight]]] [-c|--cpu-shares[=0]] [--cap-add[=[]]] [--cap-drop[=[]]] [--cidfile[=cidfile ]] [--cpu-period[=0]] [--cpuset-cpus[=cpuset-cpus]] [-- Cpuset-mems[=cpuset-mems]] [-d|--detach[=false]] [--cpu-quota[=0]] [--device[=[]] [--dns-search[=[]]] [--dns[=[]]] [-e|--env[=[]]] [--entry- point[=entrypoint]] [--env-file[=[]]] [- -expose[=[]]] [-h|--hostname[=hostname]] [--help] [-i|-- Interactive[=false]] [--ipc[=ipc]] [-l|--label[=[]]] [--label-file[=[]] [--link[=[]]] [--lxc-conf[=[]]] [-- log-driver[=[]]] [--log-opt[=[]]] [-m|--memory[=memory]] [- -memory-swap[=memory-swap]] [--mac-address[=mac-address]] [--name[=name]] [--net[= "Bridge"]] [--oom-kill-disable[=false]] [-p|-- publish-all[=false]] [-p|--publish[=[]]] [--pid[=[]]] [-- uts[=[]]] [--privileged[=false]] [--read-only[=false]] [--restart[=restart]] [--rm[=false]] [-- security-opt[=[]]] [--sig-proxy[=true]] [-t|--tty[=false]] [-u|--user[=user]] [-v|--volume[=[]]] [- -volumes-from[=[]]] [-w|--workdir[=workdir]] [--cgroup-parent[= Cgroup-path]] image [command] [arg ...] configuration directives: explanations of specific configuration instructions, similar to docker create, are no longer described here. But Docker runIs the most important part of Docker, will open up a special section to explain the example, you can refer to the Docker Configuration Guide (iv): docker run example explanation of the section save: Save image to a tar package syntax: docker save [--help] [-o|--output[=output]] image [image ...] configuration Directive: --help #查看帮助 -o --output= "" # Output to a file without stdout stream output display search: search for mirrors syntax from Docker hub: Docker search [--automated[=false]] [--help] [--no-trunc[=false]] [-s|--stars[=0]] term configuration Directive: --help #查看帮助 --automated=true|false #默认为false, show only the images that are built with automation -- no-trunc=ture|false #默认为false, truncate OUTPUT, display only a small amount of information -s --stars=0 #只显示至少有n星评价的镜像start: Start one or more stopped containers Syntax: Docker start [-a|--attach[=false]] [--help] [-i|--interactive[=false]] container [container ...] configuration directive: -a, --attach=true|false #默认为false, attach the correct output and error output information for all containers and forward the signal to the process --help #查看帮助 -i --interactive=true| false #附加输入信息, the default is falsestats: statistics displays the resource flow information for one or more containers Syntax: Docker stats [--help] container [container ...] configuration directive: --help # View Help --no-steam #只显示一次信息 instead of displaying stop: in a stream stop a running container syntax: Docker stop [--help] [-t|--time[=10]] container [container ...] configuration directive: --help # View Help -t --time=10 # Wait (default) 10 seconds before closing tag: create tags syntax for directive mirroring: docker tag [-f|-- force[=false]] [--help] image[:tag] [registry_host/][username/]name[:tag] configuration directive: -f --force=true|false # The default is False, which is true when you force an alias top: to display a running container process syntax: docker top [ --help] container [ps options]unpause: Cancel all processes that stop a container Grammar: Docker unpause coNtainer [container ...] version: View Docker version information syntax:docker versionwait: when the container stops, print its exit code syntax: Docker wait [--help] container [container ...]
This article is from the "Letter" blog, please be sure to keep this source http://leon0long.blog.51cto.com/3011404/1767579
Docker Configuration Guide (ii): Instruction set (ii)