[docs] Write allocate ports example accurately in the doc of the docker driver

This commit is contained in:
Kenjiro Nakayama 2016-07-20 20:53:57 +09:00
parent 3cd8d9d84e
commit d29579daf0
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" {}
}
}
}
```