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