docker.1 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. .\" Process this file with
  2. .\" nroff -man -Tascii docker.1
  3. .\"
  4. .TH "DOCKER" "1" "APRIL 2014" "0.1" "Docker"
  5. .SH NAME
  6. docker \- Docker image and container command line interface
  7. .SH SYNOPSIS
  8. .B docker [OPTIONS] [COMMAND] [arg...]
  9. .SH DESCRIPTION
  10. \fBdocker\fR has two distinct functions. It is used for starting the Docker daemon and to run the CLI (i.e., to command the daemon to manage images, containers etc.) So \fBdocker\fR is both a server as deamon and a client to the daemon through the CLI.
  11. .sp
  12. To run the Docker deamon you do not specify any of the commands listed below but must specify the \fB-d\fR option. The other options listed below are for the daemon only.
  13. .sp
  14. The Docker CLI has over 30 commands. The commands are listed below and each has its own man page which explain usage and arguements.
  15. .sp
  16. To see the man page for a command run \fBman docker <command>\fR.
  17. .SH "OPTIONS"
  18. .B \-D=false:
  19. Enable debug mode
  20. .TP
  21. .B\-H=[unix:///var/run/docker.sock]: tcp://[host[:port]] to bind or unix://[/path/to/socket] to use.
  22. When host=[0.0.0.0], port=[4243] or path
  23. =[/var/run/docker.sock] is omitted, default values are used.
  24. .TP
  25. .B \-\-api-enable-cors=false
  26. Enable CORS headers in the remote API
  27. .TP
  28. .B \-b=""
  29. Attach containers to a pre\-existing network bridge; use 'none' to disable container networking
  30. .TP
  31. .B \-\-bip=""
  32. Use the provided CIDR notation address for the dynamically created bridge (docker0); Mutually exclusive of \-b
  33. .TP
  34. .B \-d=false
  35. Enable daemon mode
  36. .TP
  37. .B \-\-dns=""
  38. Force Docker to use specific DNS servers
  39. .TP
  40. .B \-g="/var/lib/docker"
  41. Path to use as the root of the Docker runtime
  42. .TP
  43. .B \-\-icc=true
  44. Enable inter\-container communication
  45. .TP
  46. .B \-\-ip="0.0.0.0"
  47. Default IP address to use when binding container ports
  48. .TP
  49. .B \-\-iptables=true
  50. Disable Docker's addition of iptables rules
  51. .TP
  52. .B \-\-mtu=1500
  53. Set the containers network mtu
  54. .TP
  55. .B \-p="/var/run/docker.pid"
  56. Path to use for daemon PID file
  57. .TP
  58. .B \-r=true
  59. Restart previously running containers
  60. .TP
  61. .B \-s=""
  62. Force the Docker runtime to use a specific storage driver
  63. .TP
  64. .B \-v=false
  65. Print version information and quit
  66. .SH "COMMANDS"
  67. .TP
  68. .B attach
  69. Attach to a running container
  70. .TP
  71. .B build
  72. Build a container from a Dockerfile
  73. .TP
  74. .B commit
  75. Create a new image from a container's changes
  76. .TP
  77. .B cp
  78. Copy files/folders from the containers filesystem to the host at path
  79. .TP
  80. .B diff
  81. Inspect changes on a container's filesystem
  82. .TP
  83. .B events
  84. Get real time events from the server
  85. .TP
  86. .B export
  87. Stream the contents of a container as a tar archive
  88. .TP
  89. .B history
  90. Show the history of an image
  91. .TP
  92. .B images
  93. List images
  94. .TP
  95. .B import
  96. Create a new filesystem image from the contents of a tarball
  97. .TP
  98. .B info
  99. Display system-wide information
  100. .TP
  101. .B insert
  102. Insert a file in an image
  103. .TP
  104. .B inspect
  105. Return low-level information on a container
  106. .TP
  107. .B kill
  108. Kill a running container (which includes the wrapper process and everything inside it)
  109. .TP
  110. .B load
  111. Load an image from a tar archive
  112. .TP
  113. .B login
  114. Register or Login to a Docker registry server
  115. .TP
  116. .B logs
  117. Fetch the logs of a container
  118. .TP
  119. .B port
  120. Lookup the public-facing port which is NAT-ed to PRIVATE_PORT
  121. .TP
  122. .B ps
  123. List containers
  124. .TP
  125. .B pull
  126. Pull an image or a repository from a Docker registry server
  127. .TP
  128. .B push
  129. Push an image or a repository to a Docker registry server
  130. .TP
  131. .B restart
  132. Restart a running container
  133. .TP
  134. .B rm
  135. Remove one or more containers
  136. .TP
  137. .B rmi
  138. Remove one or more images
  139. .TP
  140. .B run
  141. Run a command in a new container
  142. .TP
  143. .B save
  144. Save an image to a tar archive
  145. .TP
  146. .B search
  147. Search for an image in the Docker index
  148. .TP
  149. .B start
  150. Start a stopped container
  151. .TP
  152. .B stop
  153. Stop a running container
  154. .TP
  155. .B tag
  156. Tag an image into a repository
  157. .TP
  158. .B top
  159. Lookup the running processes of a container
  160. .TP
  161. .B version
  162. Show the Docker version information
  163. .TP
  164. .B wait
  165. Block until a container stops, then print its exit code
  166. .SH EXAMPLES
  167. .sp
  168. For specific examples please see the man page for the specific Docker command.
  169. .sp
  170. .SH HISTORY
  171. April 2014, Originally compiled by William Henry (whenry at redhat dot com) based on dockier.io source material and internal work.