Skip to content

Commit

Permalink
Use rkt port example that Just Works
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Oct 26, 2016
1 parent 294b7b3 commit edac5e3
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions website/source/docs/drivers/rkt.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,31 @@ using `--net=host` or `--port=PORT` with your network.
Example:

```
task "etcd" {
# Use Docker to run the task.
driver = "rkt"
config {
image = "docker://my_image"
net = ["containers"]
port_map {
app = "8080-tcp"
}
}
task "redis" {
# Use rkt to run the task.
driver = "rkt"
config {
# Use docker image with port defined
image = "docker://redis:latest"
port_map {
app = "6379-tcp"
}
}
service {
port = "app"
}
service {
port = "app"
}
resources {
network {
mbits = 10
port "app" {
static = 12345
}
}
resources {
network {
mbits = 10
port "app" {
static = 12345
}
}
}
}
```

### Allocating Ports
Expand Down

0 comments on commit edac5e3

Please sign in to comment.