github.com/torfuzx/docker@v1.8.1/daemon/resize.go (about) 1 package daemon 2 3 func (daemon *Daemon) ContainerResize(name string, height, width int) error { 4 container, err := daemon.Get(name) 5 if err != nil { 6 return err 7 } 8 9 return container.Resize(height, width) 10 } 11 12 func (daemon *Daemon) ContainerExecResize(name string, height, width int) error { 13 execConfig, err := daemon.getExecConfig(name) 14 if err != nil { 15 return err 16 } 17 18 return execConfig.Resize(height, width) 19 }