Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
| ... | ... |
@@ -50,35 +50,38 @@ expect an integer, and they can only be specified once. |
| 50 | 50 |
## daemon |
| 51 | 51 |
|
| 52 | 52 |
Usage of docker: |
| 53 |
- |
|
| 54 |
- -D, --debug=false: Enable debug mode |
|
| 55 |
- -H, --host=[]: The socket(s) to bind to in daemon mode, specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd. |
|
| 56 |
- -G, --group="docker": Group to assign the unix socket specified by -H when running in daemon mode; use '' (the empty string) to disable setting of a group |
|
| 57 |
- --api-enable-cors=false: Enable CORS headers in the remote API |
|
| 58 |
- -b, --bridge="": Attach containers to a pre-existing network bridge; use 'none' to disable container networking |
|
| 59 |
- -bip="": Use this CIDR notation address for the network bridge᾿s IP, not compatible with -b |
|
| 60 |
- -d, --daemon=false: Enable daemon mode |
|
| 61 |
- --dns=[]: Force docker to use specific DNS servers |
|
| 62 |
- --dns-search=[]: Force Docker to use specific DNS search domains |
|
| 63 |
- --enable-selinux=false: Enable selinux support for running containers |
|
| 64 |
- -g, --graph="/var/lib/docker": Path to use as the root of the docker runtime |
|
| 65 |
- --icc=true: Enable inter-container communication |
|
| 66 |
- --ip="0.0.0.0": Default IP address to use when binding container ports |
|
| 67 |
- --ip-forward=true: Enable net.ipv4.ip_forward |
|
| 68 |
- --iptables=true: Enable Docker᾿s addition of iptables rules |
|
| 69 |
- -p, --pidfile="/var/run/docker.pid": Path to use for daemon PID file |
|
| 70 |
- -r, --restart=true: Restart previously running containers |
|
| 71 |
- -s, --storage-driver="": Force the docker runtime to use a specific storage driver |
|
| 72 |
- -e, --exec-driver="native": Force the docker runtime to use a specific exec driver |
|
| 73 |
- -v, --version=false: Print version information and quit |
|
| 74 |
- --tls=false: Use TLS; implied by tls-verify flags |
|
| 75 |
- --tlscacert="~/.docker/ca.pem": Trust only remotes providing a certificate signed by the CA given here |
|
| 76 |
- --tlscert="~/.docker/cert.pem": Path to TLS certificate file |
|
| 77 |
- --tlskey="~/.docker/key.pem": Path to TLS key file |
|
| 78 |
- --tlsverify=false: Use TLS and verify the remote (daemon: verify client, client: verify daemon) |
|
| 79 |
- --mtu=0: Set the containers network MTU; if no value is provided: default to the default route MTU or 1500 if no default route is available |
|
| 80 |
- |
|
| 81 |
- Options with [] may be specified multiple times. |
|
| 53 |
+ --api-enable-cors=false Enable CORS headers in the remote API |
|
| 54 |
+ -b, --bridge="" Attach containers to a pre-existing network bridge |
|
| 55 |
+ use 'none' to disable container networking |
|
| 56 |
+ --bip="" Use this CIDR notation address for the network bridge's IP, not compatible with -b |
|
| 57 |
+ -d, --daemon=false Enable daemon mode |
|
| 58 |
+ -D, --debug=false Enable debug mode |
|
| 59 |
+ --dns=[] Force docker to use specific DNS servers |
|
| 60 |
+ --dns-search=[] Force Docker to use specific DNS search domains |
|
| 61 |
+ -e, --exec-driver="native" Force the docker runtime to use a specific exec driver |
|
| 62 |
+ -G, --group="docker" Group to assign the unix socket specified by -H when running in daemon mode |
|
| 63 |
+ use '' (the empty string) to disable setting of a group |
|
| 64 |
+ -g, --graph="/var/lib/docker" Path to use as the root of the docker runtime |
|
| 65 |
+ -H, --host=[] The socket(s) to bind to in daemon mode |
|
| 66 |
+ specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd. |
|
| 67 |
+ --icc=true Enable inter-container communication |
|
| 68 |
+ --ip="0.0.0.0" Default IP address to use when binding container ports |
|
| 69 |
+ --ip-forward=true Enable net.ipv4.ip_forward |
|
| 70 |
+ --iptables=true Enable Docker's addition of iptables rules |
|
| 71 |
+ --mtu=0 Set the containers network MTU |
|
| 72 |
+ if no value is provided: default to the default route MTU or 1500 if no default route is available |
|
| 73 |
+ -p, --pidfile="/var/run/docker.pid" Path to use for daemon PID file |
|
| 74 |
+ -r, --restart=true Restart previously running containers |
|
| 75 |
+ -s, --storage-driver="" Force the docker runtime to use a specific storage driver |
|
| 76 |
+ --selinux-enabled=false Enable selinux support |
|
| 77 |
+ --tls=false Use TLS; implied by tls-verify flags |
|
| 78 |
+ --tlscacert="/home/sven/.docker/ca.pem" Trust only remotes providing a certificate signed by the CA given here |
|
| 79 |
+ --tlscert="/home/sven/.docker/cert.pem" Path to TLS certificate file |
|
| 80 |
+ --tlskey="/home/sven/.docker/key.pem" Path to TLS key file |
|
| 81 |
+ --tlsverify=false Use TLS and verify the remote (daemon: verify client, client: verify daemon) |
|
| 82 |
+ -v, --version=false Print version information and quit |
|
| 83 |
+ |
|
| 84 |
+Options with [] may be specified multiple times. |
|
| 82 | 85 |
|
| 83 | 86 |
The Docker daemon is the persistent process that manages containers. |
| 84 | 87 |
Docker uses the same binary for both the daemon and client. To run the |
| ... | ... |
@@ -126,12 +129,12 @@ like this: |
| 126 | 126 |
|
| 127 | 127 |
## attach |
| 128 | 128 |
|
| 129 |
-Attach to a running container. |
|
| 129 |
+ Usage: docker attach [OPTIONS] CONTAINER |
|
| 130 | 130 |
|
| 131 |
- Usage: docker attach CONTAINER |
|
| 131 |
+ Attach to a running container |
|
| 132 | 132 |
|
| 133 |
- --no-stdin=false: Do not attach stdin |
|
| 134 |
- --sig-proxy=true: Proxify all received signal to the process (even in non-tty mode) |
|
| 133 |
+ --no-stdin=false Do not attach stdin |
|
| 134 |
+ --sig-proxy=true Proxify all received signal to the process (even in non-tty mode) |
|
| 135 | 135 |
|
| 136 | 136 |
The `attach` command will allow you to view or |
| 137 | 137 |
interact with any running container, detached (`-d`) |
| ... | ... |
@@ -185,15 +188,14 @@ To kill the container, use `docker kill`. |
| 185 | 185 |
|
| 186 | 186 |
## build |
| 187 | 187 |
|
| 188 |
-Build a new container image from the source code at PATH |
|
| 189 |
- |
|
| 190 | 188 |
Usage: docker build [OPTIONS] PATH | URL | - |
| 191 | 189 |
|
| 192 |
- -t, --tag="": Repository name (and optionally a tag) to be applied |
|
| 193 |
- to the resulting image in case of success. |
|
| 194 |
- -q, --quiet=false: Suppress the verbose output generated by the containers. |
|
| 195 |
- --no-cache: Do not use the cache when building the image. |
|
| 196 |
- --rm=true: Remove intermediate containers after a successful build |
|
| 190 |
+ Build a new container image from the source code at PATH |
|
| 191 |
+ |
|
| 192 |
+ --no-cache=false Do not use cache when building the image |
|
| 193 |
+ -q, --quiet=false Suppress the verbose output generated by the containers |
|
| 194 |
+ --rm=true Remove intermediate containers after a successful build |
|
| 195 |
+ -t, --tag="" Repository name (and optionally a tag) to be applied to the resulting image in case of success |
|
| 197 | 196 |
|
| 198 | 197 |
Use this command to build Docker images from a Dockerfile |
| 199 | 198 |
and a "context". |
| ... | ... |
@@ -293,12 +295,12 @@ schema. |
| 293 | 293 |
|
| 294 | 294 |
## commit |
| 295 | 295 |
|
| 296 |
-Create a new image from a container᾿s changes |
|
| 297 |
- |
|
| 298 | 296 |
Usage: docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] |
| 299 | 297 |
|
| 300 |
- -m, --message="": Commit message |
|
| 301 |
- -a, --author="": Author (eg. "John Hannibal Smith <hannibal@a-team.com>" |
|
| 298 |
+ Create a new image from a container's changes |
|
| 299 |
+ |
|
| 300 |
+ -a, --author="" Author (eg. "John Hannibal Smith <hannibal@a-team.com>" |
|
| 301 |
+ -m, --message="" Commit message |
|
| 302 | 302 |
|
| 303 | 303 |
It can be useful to commit a container's file changes or settings into a |
| 304 | 304 |
new image. This allows you debug a container by running an interactive |
| ... | ... |
@@ -325,8 +327,7 @@ path. Paths are relative to the root of the filesystem. |
| 325 | 325 |
|
| 326 | 326 |
Usage: docker cp CONTAINER:PATH HOSTPATH |
| 327 | 327 |
|
| 328 |
- $ sudo docker cp 7bb0e258aefe:/etc/debian_version . |
|
| 329 |
- $ sudo docker cp blue_frog:/etc/hosts . |
|
| 328 |
+ Copy files/folders from the PATH to the HOSTPATH |
|
| 330 | 329 |
|
| 331 | 330 |
## diff |
| 332 | 331 |
|
| ... | ... |
@@ -334,6 +335,8 @@ List the changed files and directories in a container᾿s filesystem |
| 334 | 334 |
|
| 335 | 335 |
Usage: docker diff CONTAINER |
| 336 | 336 |
|
| 337 |
+ Inspect changes on a container's filesystem |
|
| 338 |
+ |
|
| 337 | 339 |
There are 3 events that are listed in the `diff`: |
| 338 | 340 |
|
| 339 | 341 |
1. `A` - Add |
| ... | ... |
@@ -358,14 +361,12 @@ For example: |
| 358 | 358 |
|
| 359 | 359 |
## events |
| 360 | 360 |
|
| 361 |
-Get real time events from the server |
|
| 361 |
+ Usage: docker events [OPTIONS] |
|
| 362 | 362 |
|
| 363 |
- Usage: docker events |
|
| 363 |
+ Get real time events from the server |
|
| 364 | 364 |
|
| 365 |
- --since="": Show all events created since timestamp |
|
| 366 |
- (either seconds since epoch, or date string as below) |
|
| 367 |
- --until="": Show events created before timestamp |
|
| 368 |
- (either seconds since epoch, or date string as below) |
|
| 365 |
+ --since="" Show all events created since timestamp |
|
| 366 |
+ --until="" Stream events until this timestamp |
|
| 369 | 367 |
|
| 370 | 368 |
### Examples |
| 371 | 369 |
|
| ... | ... |
@@ -403,22 +404,22 @@ You'll need two shells for this example. |
| 403 | 403 |
|
| 404 | 404 |
## export |
| 405 | 405 |
|
| 406 |
-Export the contents of a filesystem as a tar archive to STDOUT |
|
| 407 |
- |
|
| 408 | 406 |
Usage: docker export CONTAINER |
| 409 | 407 |
|
| 408 |
+ Export the contents of a filesystem as a tar archive to STDOUT |
|
| 409 |
+ |
|
| 410 | 410 |
For example: |
| 411 | 411 |
|
| 412 | 412 |
$ sudo docker export red_panda > latest.tar |
| 413 | 413 |
|
| 414 | 414 |
## history |
| 415 | 415 |
|
| 416 |
-Show the history of an image |
|
| 417 |
- |
|
| 418 | 416 |
Usage: docker history [OPTIONS] IMAGE |
| 419 | 417 |
|
| 420 |
- --no-trunc=false: Don᾿t truncate output |
|
| 421 |
- -q, --quiet=false: Only show numeric IDs |
|
| 418 |
+ Show the history of an image |
|
| 419 |
+ |
|
| 420 |
+ --no-trunc=false Don't truncate output |
|
| 421 |
+ -q, --quiet=false Only show numeric IDs |
|
| 422 | 422 |
|
| 423 | 423 |
To see how the `docker:latest` image was built: |
| 424 | 424 |
|
| ... | ... |
@@ -433,13 +434,13 @@ To see how the `docker:latest` image was built: |
| 433 | 433 |
|
| 434 | 434 |
## images |
| 435 | 435 |
|
| 436 |
-List images |
|
| 437 |
- |
|
| 438 | 436 |
Usage: docker images [OPTIONS] [NAME] |
| 439 | 437 |
|
| 440 |
- -a, --all=false: Show all images (by default filter out the intermediate image layers) |
|
| 441 |
- --no-trunc=false: Don᾿t truncate output |
|
| 442 |
- -q, --quiet=false: Only show numeric IDs |
|
| 438 |
+ List images |
|
| 439 |
+ |
|
| 440 |
+ -a, --all=false Show all images (by default filter out the intermediate image layers) |
|
| 441 |
+ --no-trunc=false Don't truncate output |
|
| 442 |
+ -q, --quiet=false Only show numeric IDs |
|
| 443 | 443 |
|
| 444 | 444 |
The default `docker images` will show all top level |
| 445 | 445 |
images, their repository and tags, and their virtual size. |
| ... | ... |
@@ -481,8 +482,7 @@ by default. |
| 481 | 481 |
|
| 482 | 482 |
Usage: docker import URL|- [REPOSITORY[:TAG]] |
| 483 | 483 |
|
| 484 |
- Create an empty filesystem image and import the contents of the tarball |
|
| 485 |
- (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) into it, then optionally tag it. |
|
| 484 |
+ Create an empty filesystem image and import the contents of the tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) into it, then optionally tag it. |
|
| 486 | 485 |
|
| 487 | 486 |
URLs must start with `http` and point to a single |
| 488 | 487 |
file archive (.tar, .tar.gz, .tgz, .bzip, .tar.xz, or .txz) containing a |
| ... | ... |
@@ -515,10 +515,12 @@ tar, then the ownerships might not get preserved. |
| 515 | 515 |
|
| 516 | 516 |
## info |
| 517 | 517 |
|
| 518 |
-Display system-wide information. |
|
| 519 |
- |
|
| 520 | 518 |
Usage: docker info |
| 521 | 519 |
|
| 520 |
+ Display system-wide information |
|
| 521 |
+ |
|
| 522 |
+For example: |
|
| 523 |
+ |
|
| 522 | 524 |
$ sudo docker info |
| 523 | 525 |
Containers: 292 |
| 524 | 526 |
Images: 194 |
| ... | ... |
@@ -536,11 +538,11 @@ ensure we know how your setup is configured. |
| 536 | 536 |
|
| 537 | 537 |
## inspect |
| 538 | 538 |
|
| 539 |
-Return low-level information on a container/image |
|
| 540 |
- |
|
| 541 | 539 |
Usage: docker inspect CONTAINER|IMAGE [CONTAINER|IMAGE...] |
| 542 | 540 |
|
| 543 |
- -f, --format="": Format the output using the given go template. |
|
| 541 |
+ Return low-level information on a container/image |
|
| 542 |
+ |
|
| 543 |
+ -f, --format="" Format the output using the given go template. |
|
| 544 | 544 |
|
| 545 | 545 |
By default, this will render all results in a JSON array. If a format is |
| 546 | 546 |
specified, the given template will be executed for each result. |
| ... | ... |
@@ -590,11 +592,11 @@ contains complex json object, so to grab it as JSON, you use |
| 590 | 590 |
|
| 591 | 591 |
## kill |
| 592 | 592 |
|
| 593 |
-Kill a running container (send SIGKILL, or specified signal) |
|
| 594 |
- |
|
| 595 | 593 |
Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...] |
| 596 | 594 |
|
| 597 |
- -s, --signal="KILL": Signal to send to the container |
|
| 595 |
+ Kill a running container (send SIGKILL, or specified signal) |
|
| 596 |
+ |
|
| 597 |
+ -s, --signal="KILL" Signal to send to the container |
|
| 598 | 598 |
|
| 599 | 599 |
The main process inside the container will be sent SIGKILL, or any |
| 600 | 600 |
signal specified with option `--signal`. |
| ... | ... |
@@ -610,11 +612,11 @@ signal specified with option `--signal`. |
| 610 | 610 |
|
| 611 | 611 |
## load |
| 612 | 612 |
|
| 613 |
-Load an image from a tar archive on STDIN |
|
| 614 |
- |
|
| 615 | 613 |
Usage: docker load |
| 616 | 614 |
|
| 617 |
- -i, --input="": Read from a tar archive file, instead of STDIN |
|
| 615 |
+ Load an image from a tar archive on STDIN |
|
| 616 |
+ |
|
| 617 |
+ -i, --input="" Read from a tar archive file, instead of STDIN |
|
| 618 | 618 |
|
| 619 | 619 |
Loads a tarred repository from a file or the standard input stream. |
| 620 | 620 |
Restores both images and tags. |
| ... | ... |
@@ -636,13 +638,13 @@ Restores both images and tags. |
| 636 | 636 |
|
| 637 | 637 |
## login |
| 638 | 638 |
|
| 639 |
-Register or Login to the docker registry server |
|
| 640 |
- |
|
| 641 | 639 |
Usage: docker login [OPTIONS] [SERVER] |
| 642 | 640 |
|
| 643 |
- -e, --email="": Email |
|
| 644 |
- -p, --password="": Password |
|
| 645 |
- -u, --username="": Username |
|
| 641 |
+ Register or Login to a docker registry server, if no server is specified "https://index.docker.io/v1/" is the default. |
|
| 642 |
+ |
|
| 643 |
+ -e, --email="" Email |
|
| 644 |
+ -p, --password="" Password |
|
| 645 |
+ -u, --username="" Username |
|
| 646 | 646 |
|
| 647 | 647 |
If you want to login to a private registry you can |
| 648 | 648 |
specify this by adding the server name. |
| ... | ... |
@@ -652,12 +654,12 @@ specify this by adding the server name. |
| 652 | 652 |
|
| 653 | 653 |
## logs |
| 654 | 654 |
|
| 655 |
-Fetch the logs of a container |
|
| 655 |
+ Usage: docker logs CONTAINER |
|
| 656 | 656 |
|
| 657 |
- Usage: docker logs [OPTIONS] CONTAINER |
|
| 657 |
+ Fetch the logs of a container |
|
| 658 | 658 |
|
| 659 |
- -f, --follow=false: Follow log output |
|
| 660 |
- -t, --timestamps=false: Show timestamps |
|
| 659 |
+ -f, --follow=false Follow log output |
|
| 660 |
+ -t, --timestamps=false Show timestamps |
|
| 661 | 661 |
|
| 662 | 662 |
The `docker logs` command batch-retrieves all logs |
| 663 | 663 |
present at the time of execution. |
| ... | ... |
@@ -668,24 +670,24 @@ and stderr. |
| 668 | 668 |
|
| 669 | 669 |
## port |
| 670 | 670 |
|
| 671 |
- Usage: docker port [OPTIONS] CONTAINER PRIVATE_PORT |
|
| 671 |
+ Usage: docker port CONTAINER PRIVATE_PORT |
|
| 672 | 672 |
|
| 673 |
-Lookup the public-facing port which is NAT-ed to PRIVATE_PORT |
|
| 673 |
+ Lookup the public-facing port which is NAT-ed to PRIVATE_PORT |
|
| 674 | 674 |
|
| 675 | 675 |
## ps |
| 676 | 676 |
|
| 677 |
-List containers |
|
| 678 |
- |
|
| 679 | 677 |
Usage: docker ps [OPTIONS] |
| 680 | 678 |
|
| 681 |
- -a, --all=false: Show all containers. Only running containers are shown by default. |
|
| 682 |
- --before="": Show only container created before Id or Name, include non-running ones. |
|
| 683 |
- -l, --latest=false: Show only the latest created container, include non-running ones. |
|
| 684 |
- -n=-1: Show n last created containers, include non-running ones. |
|
| 685 |
- --no-trunc=false: Don᾿t truncate output |
|
| 686 |
- -q, --quiet=false: Only display numeric IDs |
|
| 687 |
- -s, --size=false: Display sizes, not to be used with -q |
|
| 688 |
- --since="": Show only containers created since Id or Name, include non-running ones. |
|
| 679 |
+ List containers |
|
| 680 |
+ |
|
| 681 |
+ -a, --all=false Show all containers. Only running containers are shown by default. |
|
| 682 |
+ --before="" Show only container created before Id or Name, include non-running ones. |
|
| 683 |
+ -l, --latest=false Show only the latest created container, include non-running ones. |
|
| 684 |
+ -n=-1 Show n last created containers, include non-running ones. |
|
| 685 |
+ --no-trunc=false Don't truncate output |
|
| 686 |
+ -q, --quiet=false Only display numeric IDs |
|
| 687 |
+ -s, --size=false Display sizes |
|
| 688 |
+ --since="" Show only containers created since Id or Name, include non-running ones. |
|
| 689 | 689 |
|
| 690 | 690 |
Running `docker ps` showing 2 linked containers. |
| 691 | 691 |
|
| ... | ... |
@@ -699,10 +701,10 @@ Running `docker ps` showing 2 linked containers. |
| 699 | 699 |
|
| 700 | 700 |
## pull |
| 701 | 701 |
|
| 702 |
-Pull an image or a repository from the registry |
|
| 703 |
- |
|
| 704 | 702 |
Usage: docker pull NAME[:TAG] |
| 705 | 703 |
|
| 704 |
+ Pull an image or a repository from the registry |
|
| 705 |
+ |
|
| 706 | 706 |
Most of your images will be created on top of a base image from the |
| 707 | 707 |
[Docker.io](https://index.docker.io) registry. |
| 708 | 708 |
|
| ... | ... |
@@ -721,30 +723,30 @@ use `docker pull`: |
| 721 | 721 |
|
| 722 | 722 |
## push |
| 723 | 723 |
|
| 724 |
-Push an image or a repository to the registry |
|
| 725 |
- |
|
| 726 | 724 |
Usage: docker push NAME[:TAG] |
| 727 | 725 |
|
| 726 |
+ Push an image or a repository to the registry |
|
| 727 |
+ |
|
| 728 | 728 |
Use `docker push` to share your images on public or |
| 729 | 729 |
private registries. |
| 730 | 730 |
|
| 731 | 731 |
## restart |
| 732 | 732 |
|
| 733 |
-Restart a running container |
|
| 733 |
+ Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...] |
|
| 734 | 734 |
|
| 735 |
- Usage: docker restart [OPTIONS] NAME |
|
| 735 |
+ Restart a running container |
|
| 736 | 736 |
|
| 737 |
- -t, --time=10: Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default=10 |
|
| 737 |
+ -t, --time=10 Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default=10 |
|
| 738 | 738 |
|
| 739 | 739 |
## rm |
| 740 | 740 |
|
| 741 |
-Remove one or more containers |
|
| 741 |
+ Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...] |
|
| 742 | 742 |
|
| 743 |
- Usage: docker rm [OPTIONS] CONTAINER |
|
| 743 |
+ Remove one or more containers |
|
| 744 | 744 |
|
| 745 |
- -l, --link="": Remove the link instead of the actual container |
|
| 746 |
- -f, --force=false: Force removal of running container |
|
| 747 |
- -v, --volumes=false: Remove the volumes associated to the container |
|
| 745 |
+ -f, --force=false Force removal of running container |
|
| 746 |
+ -l, --link=false Remove the specified link and not the underlying container |
|
| 747 |
+ -v, --volumes=false Remove the volumes associated to the container |
|
| 748 | 748 |
|
| 749 | 749 |
### Known Issues (rm) |
| 750 | 750 |
|
| ... | ... |
@@ -776,12 +778,12 @@ delete them. Any running containers will not be deleted. |
| 776 | 776 |
|
| 777 | 777 |
## rmi |
| 778 | 778 |
|
| 779 |
-Remove one or more images |
|
| 780 |
- |
|
| 781 | 779 |
Usage: docker rmi IMAGE [IMAGE...] |
| 782 | 780 |
|
| 783 |
- -f, --force=false: Force |
|
| 784 |
- --no-prune=false: Do not delete untagged parents |
|
| 781 |
+ Remove one or more images |
|
| 782 |
+ |
|
| 783 |
+ -f, --force=false Force |
|
| 784 |
+ --no-prune=false Do not delete untagged parents |
|
| 785 | 785 |
|
| 786 | 786 |
### Removing tagged images |
| 787 | 787 |
|
| ... | ... |
@@ -813,44 +815,43 @@ removed before the image is removed. |
| 813 | 813 |
|
| 814 | 814 |
## run |
| 815 | 815 |
|
| 816 |
-Run a command in a new container |
|
| 817 |
- |
|
| 818 |
- Usage: docker run [OPTIONS] IMAGE[:TAG] [COMMAND] [ARG...] |
|
| 819 |
- |
|
| 820 |
- -a, --attach=[] Attach to stdin, stdout or stderr. |
|
| 821 |
- -c, --cpu-shares=0 CPU shares (relative weight) |
|
| 822 |
- --cpuset="" CPUs in which to allow execution (0-3, 0,1) |
|
| 823 |
- --cidfile="" Write the container ID to the file |
|
| 824 |
- -d, --detach=false Detached mode: Run container in the background, print new container id |
|
| 825 |
- --dns=[] Set custom dns servers |
|
| 826 |
- --dns-search=[] Set custom dns search domains |
|
| 827 |
- -e, --env=[] Set environment variables |
|
| 828 |
- --entrypoint="" Overwrite the default entrypoint of the image |
|
| 829 |
- --env-file=[] Read in a line delimited file of ENV variables |
|
| 830 |
- --expose=[] Expose a port from the container without publishing it to your host |
|
| 831 |
- -h, --hostname="" Container host name |
|
| 832 |
- -i, --interactive=false Keep stdin open even if not attached |
|
| 833 |
- --link=[] Add link to another container (name:alias) |
|
| 834 |
- --lxc-conf=[] (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1" |
|
| 835 |
- -m, --memory="" Memory limit (format: <number><optional unit>, where unit = b, k, m or g) |
|
| 836 |
- --name="" Assign a name to the container |
|
| 837 |
- --net="bridge" Set the Network mode for the container |
|
| 838 |
- 'bridge': creates a new network stack for the container on the docker bridge |
|
| 839 |
- 'none': no networking for this container |
|
| 840 |
- 'container:<name|id>': reuses another container network stack |
|
| 841 |
- 'host': use the host network stack inside the contaner |
|
| 842 |
- -p, --publish=[] Publish a container's port to the host |
|
| 843 |
- format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort |
|
| 844 |
- (use 'docker port' to see the actual mapping) |
|
| 845 |
- -P, --publish-all=false Publish all exposed ports to the host interfaces |
|
| 846 |
- --privileged=false Give extended privileges to this container |
|
| 847 |
- --rm=false Automatically remove the container when it exits (incompatible with -d) |
|
| 848 |
- --sig-proxy=true Proxify all received signal to the process (even in non-tty mode) |
|
| 849 |
- -t, --tty=false Allocate a pseudo-tty |
|
| 850 |
- -u, --user="" Username or UID |
|
| 851 |
- -v, --volume=[] Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container) |
|
| 852 |
- --volumes-from=[] Mount volumes from the specified container(s) |
|
| 853 |
- -w, --workdir="" Working directory inside the container |
|
| 816 |
+ Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] |
|
| 817 |
+ |
|
| 818 |
+ Run a command in a new container |
|
| 819 |
+ |
|
| 820 |
+ -a, --attach=[] Attach to stdin, stdout or stderr. |
|
| 821 |
+ -c, --cpu-shares=0 CPU shares (relative weight) |
|
| 822 |
+ --cidfile="" Write the container ID to the file |
|
| 823 |
+ -d, --detach=false Detached mode: Run container in the background, print new container id |
|
| 824 |
+ --dns=[] Set custom dns servers |
|
| 825 |
+ --dns-search=[] Set custom dns search domains |
|
| 826 |
+ -e, --env=[] Set environment variables |
|
| 827 |
+ --entrypoint="" Overwrite the default entrypoint of the image |
|
| 828 |
+ --env-file=[] Read in a line delimited file of ENV variables |
|
| 829 |
+ --expose=[] Expose a port from the container without publishing it to your host |
|
| 830 |
+ -h, --hostname="" Container host name |
|
| 831 |
+ -i, --interactive=false Keep stdin open even if not attached |
|
| 832 |
+ --link=[] Add link to another container (name:alias) |
|
| 833 |
+ --lxc-conf=[] (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1" |
|
| 834 |
+ -m, --memory="" Memory limit (format: <number><optional unit>, where unit = b, k, m or g) |
|
| 835 |
+ --name="" Assign a name to the container |
|
| 836 |
+ --net="bridge" Set the Network mode for the container |
|
| 837 |
+ 'bridge': creates a new network stack for the container on the docker bridge |
|
| 838 |
+ 'none': no networking for this container |
|
| 839 |
+ 'container:<name|id>': reuses another container network stack |
|
| 840 |
+ 'host': use the host network stack inside the contaner |
|
| 841 |
+ -p, --publish=[] Publish a container's port to the host |
|
| 842 |
+ format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort |
|
| 843 |
+ (use 'docker port' to see the actual mapping) |
|
| 844 |
+ -P, --publish-all=false Publish all exposed ports to the host interfaces |
|
| 845 |
+ --privileged=false Give extended privileges to this container |
|
| 846 |
+ --rm=false Automatically remove the container when it exits (incompatible with -d) |
|
| 847 |
+ --sig-proxy=true Proxify all received signal to the process (even in non-tty mode) |
|
| 848 |
+ -t, --tty=false Allocate a pseudo-tty |
|
| 849 |
+ -u, --user="" Username or UID |
|
| 850 |
+ -v, --volume=[] Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container) |
|
| 851 |
+ --volumes-from=[] Mount volumes from the specified container(s) |
|
| 852 |
+ -w, --workdir="" Working directory inside the container |
|
| 854 | 853 |
|
| 855 | 854 |
The `docker run` command first `creates` a writeable container layer over the |
| 856 | 855 |
specified image, and then `starts` it using the specified command. That is, |
| ... | ... |
@@ -1061,11 +1062,11 @@ application change: |
| 1061 | 1061 |
|
| 1062 | 1062 |
## save |
| 1063 | 1063 |
|
| 1064 |
-Save an image to a tar archive (streamed to stdout by default) |
|
| 1065 |
- |
|
| 1066 | 1064 |
Usage: docker save IMAGE |
| 1067 | 1065 |
|
| 1068 |
- -o, --output="": Write to an file, instead of STDOUT |
|
| 1066 |
+ Save an image to a tar archive (streamed to stdout by default) |
|
| 1067 |
+ |
|
| 1068 |
+ -o, --output="" Write to an file, instead of STDOUT |
|
| 1069 | 1069 |
|
| 1070 | 1070 |
Produces a tarred repository to the standard output stream. Contains all |
| 1071 | 1071 |
parent layers, and all tags + versions, or specified repo:tag. |
| ... | ... |
@@ -1088,9 +1089,11 @@ Search [Docker.io](https://index.docker.io) for images |
| 1088 | 1088 |
|
| 1089 | 1089 |
Usage: docker search TERM |
| 1090 | 1090 |
|
| 1091 |
- --no-trunc=false: Don᾿t truncate output |
|
| 1092 |
- -s, --stars=0: Only displays with at least xxx stars |
|
| 1093 |
- -t, --trusted=false: Only show trusted builds |
|
| 1091 |
+ Search the docker index for images |
|
| 1092 |
+ |
|
| 1093 |
+ --no-trunc=false Don't truncate output |
|
| 1094 |
+ -s, --stars=0 Only displays with at least xxx stars |
|
| 1095 |
+ -t, --trusted=false Only show trusted builds |
|
| 1094 | 1096 |
|
| 1095 | 1097 |
See [*Find Public Images on Docker.io*]( |
| 1096 | 1098 |
/use/workingwithrepository/#find-public-images-on-dockerio) for |
| ... | ... |
@@ -1098,31 +1101,31 @@ more details on finding shared images from the commandline. |
| 1098 | 1098 |
|
| 1099 | 1099 |
## start |
| 1100 | 1100 |
|
| 1101 |
-Start a stopped container |
|
| 1101 |
+ Usage: docker start CONTAINER [CONTAINER...] |
|
| 1102 | 1102 |
|
| 1103 |
- Usage: docker start [OPTIONS] CONTAINER |
|
| 1103 |
+ Restart a stopped container |
|
| 1104 | 1104 |
|
| 1105 |
- -a, --attach=false: Attach container᾿s stdout/stderr and forward all signals to the process |
|
| 1106 |
- -i, --interactive=false: Attach container᾿s stdin |
|
| 1105 |
+ -a, --attach=false Attach container's stdout/stderr and forward all signals to the process |
|
| 1106 |
+ -i, --interactive=false Attach container's stdin |
|
| 1107 | 1107 |
|
| 1108 | 1108 |
## stop |
| 1109 | 1109 |
|
| 1110 |
-Stop a running container (Send SIGTERM, and then SIGKILL after grace period) |
|
| 1111 |
- |
|
| 1112 | 1110 |
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...] |
| 1113 | 1111 |
|
| 1114 |
- -t, --time=10: Number of seconds to wait for the container to stop before killing it. |
|
| 1112 |
+ Stop a running container (Send SIGTERM, and then SIGKILL after grace period) |
|
| 1113 |
+ |
|
| 1114 |
+ -t, --time=10 Number of seconds to wait for the container to stop before killing it. |
|
| 1115 | 1115 |
|
| 1116 | 1116 |
The main process inside the container will receive SIGTERM, and after a |
| 1117 | 1117 |
grace period, SIGKILL |
| 1118 | 1118 |
|
| 1119 | 1119 |
## tag |
| 1120 | 1120 |
|
| 1121 |
-Tag an image into a repository |
|
| 1122 |
- |
|
| 1123 | 1121 |
Usage: docker tag [OPTIONS] IMAGE [REGISTRYHOST/][USERNAME/]NAME[:TAG] |
| 1124 | 1122 |
|
| 1125 |
- -f, --force=false: Force |
|
| 1123 |
+ Tag an image into a repository |
|
| 1124 |
+ |
|
| 1125 |
+ -f, --force=false Force |
|
| 1126 | 1126 |
|
| 1127 | 1127 |
You can group your images together using names and tags, and then upload |
| 1128 | 1128 |
them to [*Share Images via Repositories*]( |
| ... | ... |
@@ -1132,15 +1135,19 @@ them to [*Share Images via Repositories*]( |
| 1132 | 1132 |
|
| 1133 | 1133 |
Usage: docker top CONTAINER [ps OPTIONS] |
| 1134 | 1134 |
|
| 1135 |
-Lookup the running processes of a container |
|
| 1135 |
+ Lookup the running processes of a container |
|
| 1136 | 1136 |
|
| 1137 | 1137 |
## version |
| 1138 | 1138 |
|
| 1139 |
+ Usage: docker version |
|
| 1140 |
+ |
|
| 1141 |
+ Show the docker version information. |
|
| 1142 |
+ |
|
| 1139 | 1143 |
Show the version of the Docker client, daemon, and latest released |
| 1140 | 1144 |
version. |
| 1141 | 1145 |
|
| 1142 | 1146 |
## wait |
| 1143 | 1147 |
|
| 1144 |
- Usage: docker wait [OPTIONS] NAME |
|
| 1148 |
+ Usage: docker wait CONTAINER [CONTAINER...] |
|
| 1145 | 1149 |
|
| 1146 |
-Block until a container stops, then print its exit code. |
|
| 1150 |
+ Block until a container stops, then print its exit code. |