Chinaunix首页 | 论坛 | 博客
  • 博客访问: 385916
  • 博文数量: 112
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 800
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-29 13:41
文章分类

全部博文(112)

文章存档

2020年(1)

2018年(10)

2017年(27)

2016年(18)

2015年(31)

2014年(25)

分类: 虚拟化

2017-11-10 17:31:34


点击(此处)折叠或打开

  1. Usage:    docker COMMAND
  2. docker命令用法
  3. A self-sufficient runtime for containers

  4. Options:
  5.       --config string   Location of client config files (default "/root/.docker")
  6.                         客户端配置文件位置(默认"/root/.docker")
  7.   -D, --debug   Enable debug mode
  8.                 启动调试模式;
  9.       --help   Print usage
  10.                使用帮助
  11.   -H, --host   list Daemon socket(s) to connect to
  12.                列出要连接到的守护进程sockets;
  13.   -l, --log-level string   Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
  14.                            设置日志级别("调试"|"信息"|"警告"|"错误"|"致命"),默认为info;
  15.       --tls   Use TLS; implied by --tlsverify
  16.               使用TLS(Transport Layer Security,安全传输层协议)
  17.       --tlscacert string   Trust certs signed only by this CA (default "/root/.docker/ca.pem")
  18.                            指定CA签署的信任证书;
  19.       --tlscert string   Path to TLS certificate file (default "/root/.docker/cert.pem")
  20.                          指定TLS证书文件路径;
  21.       --tlskey string   Path to TLS key file (default "/root/.docker/key.pem")
  22.                         指定TLS密钥文件路径;
  23.       --tlsverify   Use TLS and verify the remote
  24.                     使用TLS并且远程认证;
  25.   -v, --version   Print version information and quit
  26.                   打印版本信息;


  27. Management Commands:

  28.   container   Manage containers
  29.               容器管理
  30.   image     Manage images
  31.             镜像管理
  32.   network   Manage networks
  33.             网络管理
  34.   node     Manage Swarm nodes
  35.            集群节点管理
  36.   plugin   Manage plugins
  37.            插件管理
  38.   secret   Manage Docker secrets
  39.            Docker敏感信息管理
  40.   service   Manage services
  41.             服务管理
  42.   stack   Manage Docker stacks
  43.           Docker栈管理
  44.   swarm   Manage Swarm
  45.           集群管理
  46.   system   Manage Docker
  47.            Docker管理
  48.   volume   Manage volumes
  49.            卷管理



  50. Commands:
  51.   attach   Attach local standard input, output, and error streams to a running container
  52.            连接本地一个正在运行的容器;
  53.            *attach命令有时候并不方便。当多个窗口同时attach到同一个容器的时候,所有的窗口都会同步显示。当某个窗口因命令阻塞时,其它窗口也无法执行操作了。
  54.   build    Build an image from a Dockerfile
  55.            从Dockerfile中构建镜像;
  56.   commit   Create a new image from a container's changes
  57.            从一个更改的容器创建一个新的镜像;
  58.   cp   Copy files/folders between a container and the local filesystem
  59.        在容器和本地文件系统之间拷贝文件或文件夹;
  60.   create   Create a new container
  61.            创建一个新的容器,但是容器是未启动状态;
  62.   diff   Inspect changes to files or directories on a container's filesystem
  63.          对一个容器的文件系统上更改的文件或目录做检查;
  64.   events   Get real time events from the server
  65.            从服务器获取实时事件;
  66.   exec   Run a command in a running container
  67.          在一个运行着的容器上运行命令;
  68.   export   Export a container
  69.            导出一个容器
  70.   history   Show the history of an image
  71.             查看一个镜像的历史
  72.   images   List images
  73.            列出本地镜像
  74.   import   Import the contents from a tarball to create a filesystem image
  75.            从一个tar包中导入一个容器;
  76.   info   Display system-wide information
  77.          显示系统信息;
  78.   inspect   Return low-level information on Docker objects
  79.             查看Docker容器的详细信息;
  80.   kill   Kill one or more running containers
  81.          Kill掉一个或者多个运行中的容器;
  82.   load   Load an image from a tar archive or STDIN
  83.          从tar包或者标准输入载入镜像;
  84.   login   Log in to a Docker registry
  85.           登录到Docker仓库;
  86.   logout   Log out from a Docker registry
  87.            登出Docker仓库;
  88.   logs   Fetch the logs of a container
  89.          获取容器的日志和输出信息;
  90.   pause   Pause all processes within one or more containers
  91.           暂停一个或多个容器中的所有进程;
  92.   port   List port mappings or a specific mapping for the container
  93.          列出映射的端口或者容器的特殊映射;
  94.   ps   List containers
  95.        运行着的容器列表;
  96.   pull   Pull an image or a repository from a registry
  97.          拉取一个镜像从仓库;
  98.   push   Push an image or a repository to a registry
  99.          推送一个镜像到仓库;
  100.   rename   Rename a container
  101.            重命名一个容器;
  102.   restart   Restart one or more containers
  103.             重启一个或者多个容器;
  104.   rm   Remove one or more containers
  105.        删除一个或多个容器
  106.   rmi   Remove one or more images
  107.         删除一个或多个镜像
  108.   run   Run a command in a new container
  109.         创建一个新的容器并运行它;
  110.   save   Save one or more images to a tar archive (streamed to STDOUT by default)
  111.          保存一个或多个镜像到tar包;
  112.   search   Search the Docker Hub for images
  113.            搜索Docker 公共仓库(Hub)中的镜像;
  114.   start   Start one or more stopped containers
  115.           启动一个或多个停掉的容器;
  116.   stats   Display a live stream of container(s) resource usage statistics
  117.           显示一个容器的使用状态;
  118.   stop   Stop one or more running containers
  119.          关掉一个或者多个运行中的容器;
  120.   tag   Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  121.         创建一个标签;
  122.   top   Display the running processes of a container
  123.         显示一个容器中运行中的进程;
  124.   unpause   Unpause all processes within one or more containers
  125.             取消暂停一个或者多个容器中所有的进程;
  126.   update   Update configuration of one or more containers
  127.            为一个或者多个容器更新配置;
  128.   version   Show the Docker version information
  129.             查看Docker版本信息;
  130.   wait   Block until one or more containers stop, then print their exit codes
  131.          阻塞运行直到容器停止,然后打印出它的退出代码。


阅读(849) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~