[docs] Write allocate ports example accurately in the doc of the docker driver
This commit is contained in:
parent
3cd8d9d84e
commit
d29579daf0
|
@ -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" {}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue