2015-05-01 21:03:35 -04:00
|
|
|
package daemon
|
|
|
|
|
2015-09-16 14:56:26 -04:00
|
|
|
import (
|
2015-09-17 14:54:14 -04:00
|
|
|
derr "github.com/docker/docker/errors"
|
2015-09-16 14:56:26 -04:00
|
|
|
)
|
2015-05-01 21:03:35 -04:00
|
|
|
|
|
|
|
// ContainerUnpause unpauses a container
|
2015-09-29 13:51:40 -04:00
|
|
|
func (daemon *Daemon) ContainerUnpause(name string) error {
|
|
|
|
container, err := daemon.Get(name)
|
2015-05-01 21:03:35 -04:00
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2015-09-29 13:51:40 -04:00
|
|
|
if err := container.unpause(); err != nil {
|
2015-09-16 14:56:26 -04:00
|
|
|
return derr.ErrorCodeCantUnpause.WithArgs(name, err)
|
2015-05-01 21:03:35 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|