From b6990e0c45d4fb4170a5ba26ecef6b5a7aa42bd7 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 20 Jul 2016 20:53:57 +0900 Subject: [PATCH] [docs] Write allocate ports example accurately in the doc of the docker driver --- website/source/docs/drivers/docker.html.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/source/docs/drivers/docker.html.md b/website/source/docs/drivers/docker.html.md index 9e3515378..dab1a2306 100644 --- a/website/source/docs/drivers/docker.html.md +++ b/website/source/docs/drivers/docker.html.md @@ -171,8 +171,12 @@ You can allocate ports to your task using the port syntax described on the task "webservice" { driver = "docker" - port "http" {} - port "https" {} + resources { + network { + port "http" {} + port "https" {} + } + } } ```