mirror of https://github.com/docker/docker-py.git
Updated README to include /tcp in port binding doc
This commit is contained in:
parent
6047c581df
commit
f62cee4451
|
|
@ -33,7 +33,7 @@ for the `docker run` command except it doesn't support the attach options
|
||||||
In order to create volumes that can be rebinded at start time, use the
|
In order to create volumes that can be rebinded at start time, use the
|
||||||
following syntax: `volumes={"/srv": "" }`. The `ports` parameter is a
|
following syntax: `volumes={"/srv": "" }`. The `ports` parameter is a
|
||||||
dictionary whose key is the port to expose and the value is an empty
|
dictionary whose key is the port to expose and the value is an empty
|
||||||
dictionary: `ports={"2181": {}}`. Note, this will simply expose the ports in
|
dictionary: `ports={"2181/tcp": {}}`. Note, this will simply expose the ports in
|
||||||
the container, but does not make them available on the host. See `start`
|
the container, but does not make them available on the host. See `start`
|
||||||
below.
|
below.
|
||||||
|
|
||||||
|
|
@ -110,7 +110,7 @@ Example of binds mapping from host to container: `{'/mnt/srv/': '/srv'}`
|
||||||
dictionary whose key is the container's port and the value is a `[{'HostIp': ''
|
dictionary whose key is the container's port and the value is a `[{'HostIp': ''
|
||||||
'HostPort': ''}]` list. Leaving `HostIp` blank will expose the port on
|
'HostPort': ''}]` list. Leaving `HostIp` blank will expose the port on
|
||||||
all host interfaces. By leaving the `HostPort` blank, Docker will
|
all host interfaces. By leaving the `HostPort` blank, Docker will
|
||||||
automatically assign a port. For example: `port_bindings={"2181": [{'HostIp': ''
|
automatically assign a port. For example: `port_bindings={"2181/tcp": [{'HostIp': ''
|
||||||
'HostPort': ''}]}`.
|
'HostPort': ''}]}`.
|
||||||
`lxc_conf` allows to pass LXC configuration options in dict form.
|
`lxc_conf` allows to pass LXC configuration options in dict form.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue