2015-05-02 01:03:35 +00:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
// ContainerUnpause unpauses a container
|
|
|
|
func (daemon *Daemon) ContainerUnpause(name string) error {
|
|
|
|
container, err := daemon.Get(name)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2015-07-30 21:01:53 +00:00
|
|
|
if err := container.unpause(); err != nil {
|
2015-05-02 01:03:35 +00:00
|
|
|
return fmt.Errorf("Cannot unpause container %s: %s", name, err)
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|