2014-04-16 14:07:55 -04:00
|
|
|
% DOCKER(1) Docker User Manuals
|
|
|
|
% William Henry
|
|
|
|
% APRIL 2014
|
|
|
|
# NAME
|
|
|
|
docker \- Docker image and container command line interface
|
|
|
|
|
|
|
|
# SYNOPSIS
|
2016-11-04 22:45:15 -04:00
|
|
|
**docker** [OPTIONS] COMMAND [ARG...]
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**docker** [--help|-v|--version]
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2014-04-16 14:07:55 -04:00
|
|
|
# DESCRIPTION
|
2016-12-22 06:27:40 -05:00
|
|
|
**docker** is a client for interacting with the daemon (see **dockerd(8)**) through the CLI.
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
The Docker CLI has over 30 commands. The commands are listed below and each has
|
2014-06-14 03:49:51 -04:00
|
|
|
its own man page which explain usage and arguments.
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
To see the man page for a command run **man docker <command>**.
|
|
|
|
|
|
|
|
# OPTIONS
|
2015-08-10 10:07:50 -04:00
|
|
|
**--help**
|
2014-10-15 17:14:12 -04:00
|
|
|
Print usage statement
|
|
|
|
|
2015-04-28 11:00:18 -04:00
|
|
|
**--config**=""
|
|
|
|
Specifies the location of the Docker client configuration files. The default is '~/.docker'.
|
|
|
|
|
2015-03-13 03:28:09 -04:00
|
|
|
**-D**, **--debug**=*true*|*false*
|
|
|
|
Enable debug mode. Default is false.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**-H**, **--host**=[*unix:///var/run/docker.sock*]: tcp://[host]:[port][path] to bind or
|
2015-03-13 03:28:09 -04:00
|
|
|
unix://[/path/to/socket] to use.
|
|
|
|
The socket(s) to bind to in daemon mode specified using one or more
|
2015-08-21 09:28:49 -04:00
|
|
|
tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd.
|
|
|
|
If the tcp port is not specified, then it will default to either `2375` when
|
|
|
|
`--tls` is off, or `2376` when `--tls` is on, or `--tlsverify` is specified.
|
2015-03-13 03:28:09 -04:00
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**-l**, **--log-level**="*debug*|*info*|*warn*|*error*|*fatal*"
|
2014-10-01 09:07:24 -04:00
|
|
|
Set the logging level. Default is `info`.
|
|
|
|
|
2015-08-03 12:36:37 -04:00
|
|
|
**--tls**=*true*|*false*
|
2015-03-13 03:28:09 -04:00
|
|
|
Use TLS; implied by --tlsverify. Default is false.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--tlscacert**=*~/.docker/ca.pem*
|
2015-08-03 12:36:37 -04:00
|
|
|
Trust certs signed only by this CA.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--tlscert**=*~/.docker/cert.pem*
|
2015-08-03 12:36:37 -04:00
|
|
|
Path to TLS certificate file.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--tlskey**=*~/.docker/key.pem*
|
2015-08-03 12:36:37 -04:00
|
|
|
Path to TLS key file.
|
|
|
|
|
|
|
|
**--tlsverify**=*true*|*false*
|
2015-03-13 03:28:09 -04:00
|
|
|
Use TLS and verify the remote (daemon: verify client, client: verify daemon).
|
|
|
|
Default is false.
|
|
|
|
|
|
|
|
**-v**, **--version**=*true*|*false*
|
2014-04-16 14:07:55 -04:00
|
|
|
Print version information and quit. Default is false.
|
|
|
|
|
|
|
|
# COMMANDS
|
|
|
|
|
2016-12-14 03:42:31 -05:00
|
|
|
Use "docker help" or "docker --help" to get an overview of available commands.
|
2016-01-03 17:03:39 -05:00
|
|
|
|
2016-12-22 06:27:40 -05:00
|
|
|
# EXAMPLES
|
2014-11-20 19:36:37 -05:00
|
|
|
For specific client examples please see the man page for the specific Docker
|
|
|
|
command. For example:
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2015-02-22 15:39:43 -05:00
|
|
|
man docker-run
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# HISTORY
|
2014-11-06 10:58:07 -05:00
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com) based on docker.com source material and internal work.
|