github.com/ld86/docker@v1.7.1-rc3/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  }