2014-07-31 16:53:22 -04:00
|
|
|
package daemon
|
|
|
|
|
2015-05-01 21:03:35 -04:00
|
|
|
func (daemon *Daemon) ContainerResize(name string, height, width int) error {
|
|
|
|
container, err := daemon.Get(name)
|
2014-09-15 18:56:47 -04:00
|
|
|
if err != nil {
|
2015-03-25 03:44:12 -04:00
|
|
|
return err
|
2014-09-15 18:56:47 -04:00
|
|
|
}
|
2015-05-01 21:03:35 -04:00
|
|
|
|
|
|
|
return container.Resize(height, width)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (daemon *Daemon) ContainerExecResize(name string, height, width int) error {
|
|
|
|
execConfig, err := daemon.getExecConfig(name)
|
|
|
|
if err != nil {
|
2015-03-25 03:44:12 -04:00
|
|
|
return err
|
2014-09-15 18:56:47 -04:00
|
|
|
}
|
2015-05-01 21:03:35 -04:00
|
|
|
|
|
|
|
return execConfig.Resize(height, width)
|
2014-09-15 18:56:47 -04:00
|
|
|
}
|