Baini.Marouane
Baini.Marouane

Reputation: 599

Docker: Invalid restart policy unless-stopped


The docker Docker version is 1.6.2, build 7c8fca2 :

I'm executing this cmd:

  docker run --name=anyname --restart unless-stopped ...

I got this error :

 docker: invalid restart policy unless-stopped. see 'docker run --help'

It's the same in this link :

https://docs.docker.com/engine/admin/start-containers-automatically/#restart-policy-details

Upvotes: 1

Views: 6635

Answers (1)

BMitch
BMitch

Reputation: 265228

Your version of docker was last seen in a museum when the option you're looking for likely didn't exist. You'll need to upgraded it significantly. The current stable ce version is 17.09.x.

Upvotes: 5

Related Questions