michaelsauter/crane — pull request #101 by michaloo (2014-09-10 08:26:41+00:00)
Title: Add option to define `--restart` flag

There is an auto-restart feature introduced in docker version 1.2.0 (docker/docker#7414) which is controlled by `--restart` flag.
This PR adds the `restart` parameter to define that auto-restart policy for a container ([possible values and usage in docker documentation](https://docs.docker.com/reference/commandline/cli/#run)).

Defining it and trying to run on docker < 1.2.0 will cause `flag provided but not defined: --restart` error.