From 4070352a761295c28a9b346e741a1280b51d5039 Mon Sep 17 00:00:00 2001 From: Ivan Krutov Date: Mon, 19 Jun 2017 19:52:06 +0300 Subject: [PATCH] Setting Selenoid restart policy to "always" (fixes #33) --- selenoid/docker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selenoid/docker.go b/selenoid/docker.go index 31fe02c..7786a82 100644 --- a/selenoid/docker.go +++ b/selenoid/docker.go @@ -430,6 +430,9 @@ func (c *DockerConfigurator) Start() error { &container.HostConfig{ Binds: volumes, PortBindings: portBindings, + RestartPolicy: container.RestartPolicy{ + Name: "always", + }, }, &network.NetworkingConfig{}, selenoidContainerName) if err != nil {