github.com/tsuna/docker@v1.7.0-rc3/daemon/unpause.go (about) 1 package daemon 2 3 import "fmt" 4 5 // ContainerUnpause unpauses a container 6 func (daemon *Daemon) ContainerUnpause(name string) error { 7 container, err := daemon.Get(name) 8 if err != nil { 9 return err 10 } 11 12 if err := container.Unpause(); err != nil { 13 return fmt.Errorf("Cannot unpause container %s: %s", name, err) 14 } 15 container.LogEvent("unpause") 16 17 return nil 18 }