Merge pull request #1440 from nak3/fix-allocating-ports-example

[docs] Write allocate ports example accurately
This commit is contained in:
Diptanu Choudhury 2016-07-20 10:08:11 -07:00 committed by GitHub
commit 917b687d95
1 changed files with 6 additions and 2 deletions

View File

@ -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" {}
}
}
}
```