From f62cee44512ae8087333b9b15bd3109af87590fd Mon Sep 17 00:00:00 2001 From: Roberto Aguilar Date: Mon, 4 Nov 2013 15:03:06 -0800 Subject: [PATCH] Updated README to include /tcp in port binding doc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d6bab40..37e418e2 100644 --- a/README.md +++ b/README.md @@ -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 following syntax: `volumes={"/srv": "" }`. The `ports` parameter is a 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` 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': '' 'HostPort': ''}]` list. Leaving `HostIp` blank will expose the port on 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': ''}]}`. `lxc_conf` allows to pass LXC configuration options in dict form.