Skip to content

Commit

Permalink
change docker restart policy to unless-stopped. Fixes #1132
Browse files Browse the repository at this point in the history
  • Loading branch information
schakrava committed Feb 12, 2016
1 parent 39e9dce commit d16ae59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/views/rockon_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
DOCKER = '/usr/bin/docker'
ROCKON_URL = 'https://localhost/api/rockons'
DCMD = [DOCKER, 'run', '--log-driver=syslog', ]
DCMD2 = list(DCMD) + ['-d', '--restart=on-failure:5', ]
DCMD2 = list(DCMD) + ['-d', '--restart=unless-stopped', ]

import logging
logger = logging.getLogger(__name__)
Expand Down

0 comments on commit d16ae59

Please sign in to comment.