From edac5e322dddf1594cc35759a4c6abb4c9dc0beb Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 25 Oct 2016 17:11:01 -0700 Subject: [PATCH] Use rkt port example that Just Works --- website/source/docs/drivers/rkt.html.md | 41 ++++++++++++------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/website/source/docs/drivers/rkt.html.md b/website/source/docs/drivers/rkt.html.md index 34a916b9e..48630572f 100644 --- a/website/source/docs/drivers/rkt.html.md +++ b/website/source/docs/drivers/rkt.html.md @@ -105,32 +105,31 @@ using `--net=host` or `--port=PORT` with your network. Example: ``` - task "etcd" { - # Use Docker to run the task. - driver = "rkt" +task "redis" { + # Use rkt to run the task. + driver = "rkt" - config { - image = "docker://my_image" - net = ["containers"] - port_map { - app = "8080-tcp" - } - } + 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