restart containers if they are running for more than 15 minutes (900 seconds)

This commit is contained in:
Ralf Teusner
2015-04-21 18:28:34 +02:00
parent 2cd474ceb0
commit e448e403ba
3 changed files with 24 additions and 1 deletions

View File

@ -1,4 +1,8 @@
module DockerContainerMixin
attr_accessor :start_time
attr_accessor :status
def binds
json['HostConfig']['Binds']
end