From e8c34114aab029737b591b9f00e29fec1d72172d Mon Sep 17 00:00:00 2001 From: Alex Dong Date: Tue, 25 Mar 2014 10:39:34 +1300 Subject: [PATCH] Add examples to bind to only one network interface Add `- "127.0.0.1:20080:80"` to `expose` example as well as the full docker port binding syntax. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index de611ea..e408a95 100644 --- a/README.md +++ b/README.md @@ -99,9 +99,10 @@ This template is "composed" out of all these child templates, this allows for a ``` expose: - "2222:22" + - "127.0.0.1:20080:80" ``` -Expose port 22 inside the container on port 2222 on ALL local host interfaces. +Expose port 22 inside the container on port 2222 on ALL local host interfaces. In order to bind to only one interface, you may specify the host's IP address as `([:[host_port]])|():][/udp]` as defined in the [docker port binding documentation](http://docs.docker.io/en/latest/use/port_redirection/) #### volumes: -- 2.25.1