github.com/gunjan5/docker@v1.8.2/daemon/execdriver/native/info.go (about)

     1  // +build linux,cgo
     2  
     3  package native
     4  
     5  type info struct {
     6  	ID     string
     7  	driver *driver
     8  }
     9  
    10  // IsRunning is determined by looking for the
    11  // pid file for a container.  If the file exists then the
    12  // container is currently running
    13  func (i *info) IsRunning() bool {
    14  	_, ok := i.driver.activeContainers[i.ID]
    15  	return ok
    16  }