Docker Command Query

Source: Internet
Author: User

Docker Command Query


Basic syntax
Docker [OPTIONS] COMMAND [arg ...]

In general, Docker commands can be used to manage daemon, or to manage images and containers through CLI commands. You can man docker view these commands by.

Options
-d=true|false     use  debug  mode. The default is  false. -h, --host=[unix:///var/run/docker.sock]: tcp://[host:port] to bind or  unix://[/path/to/socket]  To use.       socket bound in  daemon  mode, through one or more  tcp://host:port, unix:///path/ to/socket, fd://* or fd://socketfd  to specify. --api-enable-cors=true|false      CORS  header is enabled in remote  API . The default is  false. -b= ""      attach the container to an existing bridge. Network specified as   ' None '   when the container is disabled. --bip= ""      let dynamically created  docker0  take the given  CIDR  address;  with the  -b  option mutually exclusive. -d=true|false     use  daemon  mode. The default is  false. --dns= ""      let  Docker  use a given  DNS  server. -g= ""      Specify  root  paths for the  Docker  runtime. The default is  /var/lib/docker. --icc=true|false     enable inter-container communication. The default is  true. --ip= ""      default &nbsp when binding ports;ip  address. The default is  0.0.0.0. --iptables=true|false     prohibit  Docker  add  iptables  rules. The default is  true. --mtu=value     Specifies the  MTU of the container network. The default is  1500. -p= ""      Specify  PID  file path for  daemon . The default is  /var/run/docker.pid. -s= ""      Force  Docker  Runtime using a given storage driver. -v=true|false     output version information and exit. The default value is  false. --selinux-enabled=true|false     enable  SELinux  support. The default value is  false. selinux  currently does not support  BTRFS  storage drivers.
Command

Docker commands can be docker-CMD docker CMD executed in or out of the way. The two agree.

Docker-attach (1)      attached to a running container. Docker-build (1)      Create an image from a  Dockerfile  docker-commit (1)      Create a new image from the modification of a container DOCKER-CP (1)      copy files from the container to the host system Docker-diff (1)      Check for changes to a container file system docker-events (1)      get real-time events from the server Docker-export (1)      Export container contents as a  tar  pack docker-history (1)      display a mirrored history docker-images (1)       List existing mirrors Docker-import (1)      import a file (typically  tar  package) path or directory to create a mirror docker-info (1)      displays some relevant system information Docker-inspect (1)      displays the underlying specific information for a container. Docker-kill (1)      close a running container   (including process and all resources) Docker-load (1)      from a  tar  load an image in the package Docker-login (1)      Register or log into a  Docker  warehouse server docker-logout (1)      log out from the  Docker  Warehouse server docker-logs (1)      get the  log&nb of the containerSP; information Docker-pause (1)      pause all processes in a container docker-port (1)      Find a  nat   Public port to a private gateway Docker-ps (1)      list container docker-pull (1)      Pull a mirror or warehouse from a Docker warehouse server Docker-push (1)      push an image or warehouse to a  Docker  Registered server Docker-restart (1)      Restart a running container docker-rm (1)      Deletes a given number of containers Docker-rmi (1)      deletes a given number of mirrors Docker-run (1)      creates a new container, and run the given command in it Docker-save (1)      save a mirror as  tar  package file Docker-search (1)       Search for an image in  Docker index  Docker-start (1)      Start a container docker-stop (1)       Terminate a running container Docker-tag (1)      label A Mirror docker-top (1)      View running process information in a container docker-unpause (1)      recover all processes within a container from the Paused state docker-version (1)       output  Docker  Version information docker-wait (1)      block straightTerminates to a container, and then outputs its exit character. 
A diagram summarizing the Docker commands

650) this.width=650; "src=" http://dockerpool.com/static/books/docker_practice/_images/cmd_logic.png "alt=" command period " Style= "border:0px;"/>


This article from "~" blog, declined reprint!

Docker Command Query

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.