Docker command collection

How to use Docker

Usage: docker [OPTIONS] COMMAND [arg...]
       docker daemon [ --help | ... ]
       docker [ --help | -v | --version ]

Optional parameters:

Options:
  --config=~/.docker              Location of client config files
  -D, --debug                     Enable debug mode
  -H, --host=[]                   Daemon socket(s) to connect to
  -h, --help                      Print usage
  -l, --log-level=info            Set the logging level
  --tls                           Use TLS; implied by --tlsverify
  --tlscacert=~/.docker/ca.pem    Trust certs signed only by this CA
  --tlscert=~/.docker/cert.pem    Path to TLS certificate file
  --tlskey=~/.docker/key.pem      Path to TLS key file
  --tlsverify                     Use TLS and verify the remote
  -v, --version                   Print version information and quit

Command Line:

Commands:

  1. attach    Attach to a running container
  2. build     Build an image from a Dockerfile
  3. commit    Create a new image from a container's changes
  4. cp        Copy files/folders between a container and the local filesystem
  5. create    Create a new container
  6. diff      Inspect changes on a container's filesystem
  7. events    Get real time events from the server
  8. exec      Run a command in a running container
  9. export    Export a container's filesystem as a tar archive
  10. history   Show the history of an image
  11. images    List images
  12. import    Import the contents from a tarball to create a filesystem image
  13. info      Display system-wide information
  14. inspect   Return low-level information on a container or image
  15. kill      Kill a running container
  16. load      Load an image from a tar archive or STDIN
  17. login     Register or log in to a Docker registry
  18. logout    Log out from a Docker registry
  19. logs      Fetch the logs of a container
  20. network   Manage Docker networks
  21. pause     Pause all processes within a container
  22. port      List port mappings or a specific mapping for the CONTAINER
  23. ps        List containers
  24. pull      Pull an image or a repository from a registry
  25. push      Push an image or a repository to a registry
  26. rename    Rename a container
  27. restart   Restart a container
  28. rm        Remove one or more containers
  29. rmi       Remove one or more images
  30. run       Run a command in a new container
  31. save      Save an image(s) to a tar archive
  32. search    Search the Docker Hub for images
  33. start     Start one or more stopped containers
  34. stats     Display a live stream of container(s) resource usage statistics
  35. stop      Stop a running container
  36. tag       Tag an image into a repository
  37. top       Display the running processes of a container
  38. unpause   Unpause all processes within a container
  39. update    Update resources of one or more containers
  40. version   Show the Docker version information
  41. volume    Manage Docker volumes
  42. wait      Block until a container stops, then print its exit code

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326902610&siteId=291194637