user facing documentation changes in master atm
Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
This commit is contained in:
parent
885cda1ae2
commit
5743cc3423
8 changed files with 74 additions and 45 deletions
|
@ -7,6 +7,7 @@
|
|||
# ./docs/update.py /usr/bin/docker
|
||||
#
|
||||
|
||||
import datetime
|
||||
import re
|
||||
from sys import argv
|
||||
import subprocess
|
||||
|
@ -15,6 +16,9 @@ import os.path
|
|||
|
||||
script, docker_cmd = argv
|
||||
|
||||
# date "+%B %Y"
|
||||
date_string = datetime.date.today().strftime('%B %Y')
|
||||
|
||||
def print_usage(outtext, docker_cmd, command):
|
||||
help = ""
|
||||
try:
|
||||
|
@ -204,9 +208,9 @@ def update_man_pages():
|
|||
outtext.write("# HISTORY\n")
|
||||
if history != "":
|
||||
outtext.write(history+"\n")
|
||||
recent_history_re = re.compile(".*June 2014.*", re.MULTILINE|re.DOTALL)
|
||||
recent_history_re = re.compile(".*"+date_string+".*", re.MULTILINE|re.DOTALL)
|
||||
if not recent_history_re.match(history):
|
||||
outtext.write("June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>\n")
|
||||
outtext.write(date_string+", updated by Sven Dowideit <SvenDowideit@home.org.au>\n")
|
||||
outtext.close()
|
||||
|
||||
# main
|
||||
|
|
|
@ -8,6 +8,7 @@ docker-commit - Create a new image from a container's changes
|
|||
**docker commit**
|
||||
[**-a**|**--author**[=*AUTHOR*]]
|
||||
[**-m**|**--message**[=*MESSAGE*]]
|
||||
[**-p**|**--pause**[=*true*]]
|
||||
CONTAINER [REPOSITORY[:TAG]]
|
||||
|
||||
# DESCRIPTION
|
||||
|
@ -20,8 +21,8 @@ Using an existing container's name or ID you can create a new image.
|
|||
**-m**, **--message**=""
|
||||
Commit message
|
||||
|
||||
**-p, --pause**=true
|
||||
Pause container during commit
|
||||
**-p**, **--pause**=*true*|*false*
|
||||
Pause container during commit. The default is *true*.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
|
@ -37,3 +38,4 @@ create a new image run docker ps to find the container's ID and then run:
|
|||
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
||||
based on docker.com source material and in
|
||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
% DOCKER(1) Docker User Manuals
|
||||
% Daniel, Dao Quang Minh
|
||||
% Docker Community
|
||||
% JUNE 2014
|
||||
# NAME
|
||||
docker-logout - Log out from a Docker registry
|
||||
docker-logout - Log out from a Docker registry, if no server is specified "https://index.docker.io/v1/" is the default.
|
||||
|
||||
# SYNOPSIS
|
||||
**docker logout** [SERVER]
|
||||
**docker logout**
|
||||
[SERVER]
|
||||
|
||||
# DESCRIPTION
|
||||
Log the user out from a Docker registry, if no server is
|
||||
specified "https://index.docker.io/v1/" is the default. If you want to
|
||||
log out from a private registry you can specify this by adding the server name.
|
||||
|
||||
# EXAMPLE
|
||||
# OPTIONS
|
||||
There are no available options.
|
||||
|
||||
# EXAMPLES
|
||||
|
||||
## Log out from a local registry
|
||||
|
||||
|
@ -20,4 +24,4 @@ log out from a private registry you can specify this by adding the server name.
|
|||
|
||||
# HISTORY
|
||||
June 2014, Originally compiled by Daniel, Dao Quang Minh (daniel at nitrous dot io)
|
||||
|
||||
July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
|
|
|
@ -8,6 +8,7 @@ docker-logs - Fetch the logs of a container
|
|||
**docker logs**
|
||||
[**-f**|**--follow**[=*false*]]
|
||||
[**-t**|**--timestamps**[=*false*]]
|
||||
[**--tail**[=*"all"*]]
|
||||
CONTAINER
|
||||
|
||||
# DESCRIPTION
|
||||
|
@ -27,7 +28,11 @@ then continue streaming new output from the container’s stdout and stderr.
|
|||
**-t**, **--timestamps**=*true*|*false*
|
||||
Show timestamps. The default is *false*.
|
||||
|
||||
**--tail**="all"
|
||||
Output the specified number of lines at the end of logs (defaults to all logs)
|
||||
|
||||
# HISTORY
|
||||
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
||||
based on docker.com source material and internal work.
|
||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
|
|
|
@ -6,9 +6,9 @@ docker-rm - Remove one or more containers
|
|||
|
||||
# SYNOPSIS
|
||||
**docker rm**
|
||||
[**-s**|**--stop**[=*false*]]
|
||||
[**-k**|**--kill**[=*false*]]
|
||||
[**-l**|**--link**[=*false*]]
|
||||
[**-s**|**--stop**[=*false*]]
|
||||
[**-v**|**--volumes**[=*false*]]
|
||||
CONTAINER [CONTAINER...]
|
||||
|
||||
|
@ -20,15 +20,15 @@ remove a running container unless you use the \fB-f\fR option. To see all
|
|||
containers on a host use the **docker ps -a** command.
|
||||
|
||||
# OPTIONS
|
||||
**-s**, **--stop**=*true*|*false*
|
||||
Stop then remove a running container. The default is *false*.
|
||||
|
||||
**-k**, **--kill**=*true*|*false*
|
||||
Kill then remove a running container. The default is *false*.
|
||||
Kill and remove a running container. The default is *false*.
|
||||
|
||||
**-l**, **--link**=*true*|*false*
|
||||
Remove the specified link and not the underlying container. The default is *false*.
|
||||
|
||||
**-s**, **--stop**=*true*|*false*
|
||||
Stop and remove a running container. The default is *false*.
|
||||
|
||||
**-v**, **--volumes**=*true*|*false*
|
||||
Remove the volumes associated with the container. The default is *false*.
|
||||
|
||||
|
@ -53,3 +53,4 @@ command. The use that name as follows:
|
|||
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
||||
based on docker.com source material and internal work.
|
||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
|
|
|
@ -8,9 +8,12 @@ docker-run - Run a command in a new container
|
|||
**docker run**
|
||||
[**-a**|**--attach**[=*[]*]]
|
||||
[**-c**|**--cpu-shares**[=*0*]]
|
||||
[**--cap-add**[=*[]*]]
|
||||
[**--cap-drop**[=*[]*]]
|
||||
[**--cidfile**[=*CIDFILE*]]
|
||||
[**--cpuset**[=*CPUSET*]]
|
||||
[**-d**|**--detach**[=*false*]]
|
||||
[**--device**[=*[]*]]
|
||||
[**--dns-search**[=*[]*]]
|
||||
[**--dns**[=*[]*]]
|
||||
[**-e**|**--env**[=*[]*]]
|
||||
|
@ -34,7 +37,7 @@ docker-run - Run a command in a new container
|
|||
[**-v**|**--volume**[=*[]*]]
|
||||
[**--volumes-from**[=*[]*]]
|
||||
[**-w**|**--workdir**[=*WORKDIR*]]
|
||||
IMAGE[:TAG] [COMMAND] [ARG...]
|
||||
IMAGE [COMMAND] [ARG...]
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
|
@ -67,8 +70,14 @@ the same proportion of CPU cycles, but you can tell the kernel to give more
|
|||
shares of CPU time to one or more containers when you start them via **docker
|
||||
run**.
|
||||
|
||||
**--cidfile**=*file*
|
||||
Write the container ID to the file specified.
|
||||
**--cap-add**=[]
|
||||
Add Linux capabilities
|
||||
|
||||
**--cap-drop**=[]
|
||||
Drop Linux capabilities
|
||||
|
||||
**--cidfile**=""
|
||||
Write the container ID to the file
|
||||
|
||||
**--cpuset**=""
|
||||
CPUs in which to allow execution (0-3, 0,1)
|
||||
|
@ -82,9 +91,11 @@ the detached mode, then you cannot use the **-rm** option.
|
|||
|
||||
When attached in the tty mode, you can detach from a running container without
|
||||
stopping the process by pressing the keys CTRL-P CTRL-Q.
|
||||
**--device**=[]
|
||||
Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc)
|
||||
|
||||
**--dns-search**=[]
|
||||
Set custom dns search domains
|
||||
Set custom DNS search domains
|
||||
|
||||
**--dns**=*IP-address*
|
||||
Set custom DNS servers. This option can be used to override the DNS
|
||||
|
@ -92,6 +103,8 @@ configuration passed to the container. Typically this is necessary when the
|
|||
host DNS configuration is invalid for the container (e.g., 127.0.0.1). When this
|
||||
is the case the **-dns** flags is necessary for every run.
|
||||
|
||||
**-e**, **--env**=[]
|
||||
Set environment variables
|
||||
|
||||
**-e**, **-env**=*environment*
|
||||
Set environment variables. This option allows you to specify arbitrary
|
||||
|
@ -111,7 +124,7 @@ something else inside the container, so you can override the default ENTRYPOINT
|
|||
at runtime by using a **--entrypoint** and a string to specify the new
|
||||
ENTRYPOINT.
|
||||
**--env-file**=[]
|
||||
Read in a line delimited file of ENV variables
|
||||
Read in a line delimited file of environment variables
|
||||
|
||||
**--expose**=*port*
|
||||
Expose a port from the container without publishing it to your host. A
|
||||
|
@ -190,23 +203,18 @@ outside of a container on the host.
|
|||
|
||||
|
||||
**--rm**=*true*|*false*
|
||||
If set to *true* the container is automatically removed when it exits. The
|
||||
default is *false*. This option is incompatible with **-d**.
|
||||
|
||||
Automatically remove the container when it exits (incompatible with -d). The default is *false*.
|
||||
|
||||
**--sig-proxy**=*true*|*false*
|
||||
When set to true, proxy received signals to the process (even in
|
||||
non-tty mode). SIGCHLD, SIGKILL, and SIGSTOP are not proxied. The default is *true*.
|
||||
Proxy received signals to the process (even in non-TTY mode). SIGCHLD, SIGSTOP, and SIGKILL are not proxied. The default is *true*.
|
||||
|
||||
|
||||
**-t**, **-tty**=*true*|*false*
|
||||
**-t**, **--tty**=*true*|*false*
|
||||
When set to true Docker can allocate a pseudo-tty and attach to the standard
|
||||
input of any container. This can be used, for example, to run a throwaway
|
||||
interactive shell. The default is value is false.
|
||||
|
||||
|
||||
**-u**, **-user**=*username*,*uid*
|
||||
Set a username or UID for the container.
|
||||
**-u**, **--user**=""
|
||||
Username or UID
|
||||
|
||||
|
||||
**-v**, **-volume**=*volume*[:ro|:rw]
|
||||
|
@ -374,3 +382,4 @@ changes will also be reflected on the host in /var/db.
|
|||
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
||||
based on docker.com source material and internal work.
|
||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
|
|
|
@ -7,7 +7,7 @@ docker-tag - Tag an image into a repository
|
|||
# SYNOPSIS
|
||||
**docker tag**
|
||||
[**-f**|**--force**[=*false*]]
|
||||
IMAGE [REGISTRYHOST/][USERNAME/]NAME[:TAG]
|
||||
IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
|
||||
|
||||
# DESCRIPTION
|
||||
This will give a new alias to an image in the repository. This refers to the
|
||||
|
@ -56,3 +56,4 @@ registry you must tag it with the registry hostname and port (if needed).
|
|||
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
||||
based on docker.com source material and internal work.
|
||||
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
July 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|
||||
|
|
|
@ -738,7 +738,8 @@ specify this by adding the server name.
|
|||
|
||||
Log out from a Docker registry, if no server is specified "https://index.docker.io/v1/" is the default.
|
||||
|
||||
example:
|
||||
For example:
|
||||
|
||||
$ docker logout localhost:8080
|
||||
|
||||
## logs
|
||||
|
@ -953,20 +954,23 @@ removed before the image is removed.
|
|||
|
||||
Run a command in a new container
|
||||
|
||||
-a, --attach=[] Attach to stdin, stdout or stderr.
|
||||
-a, --attach=[] Attach to STDIN, STDOUT or STDERR.
|
||||
-c, --cpu-shares=0 CPU shares (relative weight)
|
||||
--cap-add=[] Add Linux capabilities
|
||||
--cap-drop=[] Drop Linux capabilities
|
||||
--cidfile="" Write the container ID to the file
|
||||
--cpuset="" CPUs in which to allow execution (0-3, 0,1)
|
||||
-d, --detach=false Detached mode: Run container in the background, print new container id
|
||||
--dns=[] Set custom dns servers
|
||||
--dns-search=[] Set custom dns search domains
|
||||
-d, --detach=false Detached mode: run container in the background and print new container ID
|
||||
--device=[] Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc)
|
||||
--dns=[] Set custom DNS servers
|
||||
--dns-search=[] Set custom DNS search domains
|
||||
-e, --env=[] Set environment variables
|
||||
--entrypoint="" Overwrite the default entrypoint of the image
|
||||
--env-file=[] Read in a line delimited file of ENV variables
|
||||
--entrypoint="" Overwrite the default ENTRYPOINT of the image
|
||||
--env-file=[] Read in a line delimited file of environment variables
|
||||
--expose=[] Expose a port from the container without publishing it to your host
|
||||
-h, --hostname="" Container host name
|
||||
-i, --interactive=false Keep stdin open even if not attached
|
||||
--link=[] Add link to another container (name:alias)
|
||||
-i, --interactive=false Keep STDIN open even if not attached
|
||||
--link=[] Add link to another container in the form of name:alias
|
||||
--lxc-conf=[] (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
|
||||
-m, --memory="" Memory limit (format: <number><optional unit>, where unit = b, k, m or g)
|
||||
--name="" Assign a name to the container
|
||||
|
@ -981,12 +985,11 @@ removed before the image is removed.
|
|||
(use 'docker port' to see the actual mapping)
|
||||
--privileged=false Give extended privileges to this container
|
||||
--rm=false Automatically remove the container when it exits (incompatible with -d)
|
||||
--sig-proxy=true Proxy received signals to the process (even in non-tty mode). SIGCHLD, SIGKILL, and SIGSTOP are not proxied.
|
||||
-t, --tty=false Allocate a pseudo-tty
|
||||
--sig-proxy=true Proxy received signals to the process (even in non-TTY mode). SIGCHLD, SIGSTOP, and SIGKILL are not proxied.
|
||||
-t, --tty=false Allocate a pseudo-TTY
|
||||
-u, --user="" Username or UID
|
||||
-v, --volume=[] Bind mount a volume (e.g., from the host: -v /host:/container, from docker: -v /container)
|
||||
-v, --volume=[] Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)
|
||||
--volumes-from=[] Mount volumes from the specified container(s)
|
||||
--device=[] Add a host device to the container (e.g. --device=/dev/sdc[:/dev/xvdc[:rwm]])
|
||||
-w, --workdir="" Working directory inside the container
|
||||
|
||||
The `docker run` command first `creates` a writeable container layer over the
|
||||
|
@ -1272,7 +1275,7 @@ grace period, SIGKILL
|
|||
|
||||
## tag
|
||||
|
||||
Usage: docker tag [OPTIONS] IMAGE [REGISTRYHOST/][USERNAME/]NAME[:TAG]
|
||||
Usage: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]
|
||||
|
||||
Tag an image into a repository
|
||||
|
||||
|
@ -1292,7 +1295,7 @@ them to [*Share Images via Repositories*](
|
|||
|
||||
Usage: docker unpause CONTAINER
|
||||
|
||||
Resumes a paused container.
|
||||
Unpause all processes within a container
|
||||
|
||||
The `docker unpause` command uses the cgroups freezer to un-suspend all
|
||||
processes in a container.
|
||||
|
|
Loading…
Reference in a new issue