From ac5738dacda480c44538376c594d114094fa9054 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Fri, 5 Sep 2014 01:34:49 +0200 Subject: [PATCH] Updated Readme Syntax --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b7679bc..7d3e26d 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ See [Automated Nginx Reverse Proxy for Docker][2] for why you might want to use To run it: - $ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t jwilder/nginx-proxy + $ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy Then start any containers you want proxied with an env var VIRTUAL_HOST=subdomain.youdomain.com - $ docker run -e VIRTUAL_HOST=foo.bar.com -t ... + $ docker run -e VIRTUAL_HOST=foo.bar.com ... Provided your DNS is setup to forward foo.bar.com to the a host running nginx-proxy, the request will be routed to a container with the VIRTUAL_HOST env var set.