From eab114a67479ecb92045db616fbfb9d0ded3fcae Mon Sep 17 00:00:00 2001 From: Yuriy Bogdanov Date: Tue, 7 Jul 2015 21:06:15 +0300 Subject: [PATCH] restart always by default --- src/compose/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose/config/config.go b/src/compose/config/config.go index 1cce72d..2aebab6 100644 --- a/src/compose/config/config.go +++ b/src/compose/config/config.go @@ -301,7 +301,7 @@ func (m *ConfigMemory) Int64() int64 { func (r *RestartPolicy) ToDockerApi() docker.RestartPolicy { if r == nil { - return docker.RestartPolicy{} + return docker.RestartPolicy{Name: "always"} } return docker.RestartPolicy{ Name: r.Name,