2014-07-16 19:39:15 -04:00
|
|
|
// +build linux,cgo
|
2014-07-14 15:49:50 -04:00
|
|
|
|
2014-02-25 00:21:35 -05:00
|
|
|
package native
|
|
|
|
|
|
|
|
type info struct {
|
|
|
|
ID string
|
2015-07-27 20:43:22 -04:00
|
|
|
driver *Driver
|
2014-02-25 00:21:35 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// IsRunning is determined by looking for the
|
2014-02-26 22:19:14 -05:00
|
|
|
// pid file for a container. If the file exists then the
|
2014-02-25 00:21:35 -05:00
|
|
|
// container is currently running
|
|
|
|
func (i *info) IsRunning() bool {
|
2015-03-05 12:55:14 -05:00
|
|
|
_, ok := i.driver.activeContainers[i.ID]
|
|
|
|
return ok
|
2014-02-25 00:21:35 -05:00
|
|
|
}
|