Reputation: 599
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
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