1DOCKER(1)                         APRIL 2014                         DOCKER(1)
2
3
4

NAME

6       docker - Docker image and container command line interface
7
8
9

SYNOPSIS

11       docker [OPTIONS] COMMAND [ARG...]
12
13
14       docker daemon [--help|...]
15
16
17       docker [--help|-v|--version]
18
19
20

DESCRIPTION

22       is a client for interacting with the daemon (see dockerd(8)) through
23       the CLI.
24
25
26       The Docker CLI has over 30 commands. The commands are listed below and
27       each has its own man page which explain usage and arguments.
28
29
30       To see the man page for a command run man docker <command>.
31
32
33

OPTIONS

35       --help
36         Print usage statement
37
38
39       --config=""
40         Specifies the location of the Docker client configuration files. The
41       default is ' /.docker'.
42
43
44       -D, --debug=true|false
45         Enable debug mode. Default is false.
46
47
48       -H, --host=[unix:///var/run/docker.sock]: tcp://[host]:[port][path] to
49       bind or unix://[/path/to/socket] to use.
50         The socket(s) to bind to in daemon mode specified using one or more
51         tcp://host:port/path, unix:///path/to/socket, fd://* or
52       fd://socketfd.
53         If the tcp port is not specified, then it will default to either 2375
54       when
55         --tls is off, or 2376 when --tls is on, or --tlsverify is specified.
56
57
58       -l, --log-level="debug|info|warn|error|fatal"
59         Set the logging level. Default is info.
60
61
62       --tls=true|false
63         Use TLS; implied by --tlsverify. Default is false.
64
65
66       --tlscacert= /.docker/ca.pem
67         Trust certs signed only by this CA.
68
69
70       --tlscert= /.docker/cert.pem
71         Path to TLS certificate file.
72
73
74       --tlskey= /.docker/key.pem
75         Path to TLS key file.
76
77
78       --tlsverify=true|false
79         Use TLS and verify the remote (daemon: verify client, client: verify
80       daemon).
81         Default is false.
82
83
84       -v, --version=true|false
85         Print version information and quit. Default is false.
86
87
88

COMMANDS

90       attach
91         Attach to a running container
92         See docker-attach(1) for full documentation on the attach command.
93
94
95       build
96         Build an image from a Dockerfile
97         See docker-build(1) for full documentation on the build command.
98
99
100       commit
101         Create a new image from a container's changes
102         See docker-commit(1) for full documentation on the commit command.
103
104
105       cp
106         Copy files/folders between a container and the local filesystem
107         See docker-cp(1) for full documentation on the cp command.
108
109
110       create
111         Create a new container
112         See docker-create(1) for full documentation on the create command.
113
114
115       diff
116         Inspect changes on a container's filesystem
117         See docker-diff(1) for full documentation on the diff command.
118
119
120       events
121         Get real time events from the server
122         See docker-events(1) for full documentation on the events command.
123
124
125       exec
126         Run a command in a running container
127         See docker-exec(1) for full documentation on the exec command.
128
129
130       export
131         Stream the contents of a container as a tar archive
132         See docker-export(1) for full documentation on the export command.
133
134
135       history
136         Show the history of an image
137         See docker-history(1) for full documentation on the history command.
138
139
140       images
141         List images
142         See docker-images(1) for full documentation on the images command.
143
144
145       import
146         Create a new filesystem image from the contents of a tarball
147         See docker-import(1) for full documentation on the import command.
148
149
150       info
151         Display system-wide information
152         See docker-info(1) for full documentation on the info command.
153
154
155       inspect
156         Return low-level information on a container or image
157         See docker-inspect(1) for full documentation on the inspect command.
158
159
160       kill
161         Kill a running container (which includes the wrapper process and
162       everything inside it)
163         See docker-kill(1) for full documentation on the kill command.
164
165
166       load
167         Load an image from a tar archive
168         See docker-load(1) for full documentation on the load command.
169
170
171       login
172         Log in to a Docker Registry
173         See docker-login(1) for full documentation on the login command.
174
175
176       logout
177         Log the user out of a Docker Registry
178         See docker-logout(1) for full documentation on the logout command.
179
180
181       logs
182         Fetch the logs of a container
183         See docker-logs(1) for full documentation on the logs command.
184
185
186       pause
187         Pause all processes within a container
188         See docker-pause(1) for full documentation on the pause command.
189
190
191       port
192         Lookup the public-facing port which is NAT-ed to PRIVATE_PORT
193         See docker-port(1) for full documentation on the port command.
194
195
196       ps
197         List containers
198         See docker-ps(1) for full documentation on the ps command.
199
200
201       pull
202         Pull an image or a repository from a Docker Registry
203         See docker-pull(1) for full documentation on the pull command.
204
205
206       push
207         Push an image or a repository to a Docker Registry
208         See docker-push(1) for full documentation on the push command.
209
210
211       rename
212         Rename a container.
213         See docker-rename(1) for full documentation on the rename command.
214
215
216       restart
217         Restart one or more containers
218         See docker-restart(1) for full documentation on the restart command.
219
220
221       rm
222         Remove one or more containers
223         See docker-rm(1) for full documentation on the rm command.
224
225
226       rmi
227         Remove one or more images
228         See docker-rmi(1) for full documentation on the rmi command.
229
230
231       run
232         Run a command in a new container
233         See docker-run(1) for full documentation on the run command.
234
235
236       save
237         Save an image to a tar archive
238         See docker-save(1) for full documentation on the save command.
239
240
241       search
242         Search for an image in the Docker index
243         See docker-search(1) for full documentation on the search command.
244
245
246       start
247         Start a container
248         See docker-start(1) for full documentation on the start command.
249
250
251       stats
252         Display a live stream of one or more containers' resource usage
253       statistics
254         See docker-stats(1) for full documentation on the stats command.
255
256
257       stop
258         Stop a container
259         See docker-stop(1) for full documentation on the stop command.
260
261
262       tag
263         Tag an image into a repository
264         See docker-tag(1) for full documentation on the tag command.
265
266
267       top
268         Lookup the running processes of a container
269         See docker-top(1) for full documentation on the top command.
270
271
272       unpause
273         Unpause all processes within a container
274         See docker-unpause(1) for full documentation on the unpause command.
275
276
277       version
278         Show the Docker version information
279         See docker-version(1) for full documentation on the version command.
280
281
282       wait
283         Block until a container stops, then print its exit code
284         See docker-wait(1) for full documentation on the wait command.
285
286
287

RUNTIME EXECUTION OPTIONS

289       Use the --exec-opt flags to specify options to the execution driver.
290       The following options are available:
291
292
293   native.cgroupdriver
294       Specifies the management of the container's cgroups. You can specify
295       cgroupfs or systemd. If you specify systemd and it is not available,
296       the system errors out.
297
298
299   Client
300       For specific client examples please see the man page for the specific
301       Docker command. For example:
302
303
304              man docker-run
305
306
307
308

HISTORY

310       April 2014, Originally compiled by William Henry (whenry at redhat dot
311       com) based on docker.com source material and internal work.
312
313
314
315William Henry                 Docker User Manuals                    DOCKER(1)
Impressum