Files
docker-cli/components/engine/daemon/execdriver/native/info.go
Qiang Huang f2ac9ec822 Fix golint warnings for daemon/execdriver/*
Addresses: #14756

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Upstream-commit: 3d17c3bb663a5d7a65bd39a5ef32cb4668b48c53
Component: engine
2015-07-28 08:43:22 +08:00

17 lines
317 B
Go

// +build linux,cgo
package native
type info struct {
ID string
driver *Driver
}
// IsRunning is determined by looking for the
// pid file for a container. If the file exists then the
// container is currently running
func (i *info) IsRunning() bool {
_, ok := i.driver.activeContainers[i.ID]
return ok
}