From ecbfb4ef989745d2cc874fad7b7b062302e22f53 Mon Sep 17 00:00:00 2001 From: ryane Date: Tue, 27 Oct 2015 12:08:57 -0400 Subject: [PATCH] restart policy support for docker_container --- r/container.html.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r/container.html.markdown b/r/container.html.markdown index f1f9707b..91c5a865 100644 --- a/r/container.html.markdown +++ b/r/container.html.markdown @@ -48,6 +48,10 @@ The following arguments are supported: connectivity between containers that are running on the same host. * `hostname` - (Optional, string) Hostname of the container. * `domainname` - (Optional, string) Domain name of the container. +* `restart` - (Optional, string) The restart policy for the container. Must be + one of "no", "on-failure", "always". +* `max_retry_count` - (Optional, int) The maximum amount of times to an attempt + a restart when `restart` is set to "on-failure" * `must_run` - (Optional, bool) If true, then the Docker container will be kept running. If false, then as long as the container exists, Terraform assumes it is successful.