code: func resizeTtyTo(ctx context.Context, client client.ContainerAPIClient, id string, height, width uint, isExec bool) error {
  	if height == 0 && width == 0 {
  		return nil
  	}
  
  	options := types.ResizeOptions{
  		Height: height,
  		Width:  width,
  	}
  
  	var err error
  	if isExec {
  		err = client.ContainerExecResize(ctx, id, options)
  	} else {
  		err = client.ContainerResize(ctx, id, options)
  	}
  
  	if err != nil {
  		logrus.Debugf("Error resize: %s\r", err)
  	}
  	return err
  }
docs: // resizeTtyTo resizes tty to specific height and width