// CreateContainer creates a new container in specified PodSandbox
CreateContainer creates a new container in specified PodSandbox
// CreateContainer creates a new container in specified PodSandbox
func (p *PrivilegedRuntime) CreateContainer(podSandboxID string, config *kubeapi.ContainerConfig, sandboxConfig *kubeapi.PodSandboxConfig) (string, error) {
	request := &kubeapi.CreateContainerRequest{
		PodSandboxId:  podSandboxID,
		Config:        config,
		SandboxConfig: sandboxConfig,
	}
	logrus.Debugf("CreateContainerRequest: %v", request)
	r, err := runtimeClient.CreateContainer(context.Background(), request)
	logrus.Debugf("CreateContainerResponse: %v", r)
	if err != nil {
		return "", err
	}
	return r.ContainerId, nil
}
func ( p * PrivilegedRuntime ) CreateContainer ( podSandboxID string , config * kubeapi . ContainerConfig , sandboxConfig * kubeapi . PodSandboxConfig ) ( string , error ) { request := & kubeapi . CreateContainerRequest { PodSandboxId : podSandboxID , Config : config , SandboxConfig : sandboxConfig , } logrus . Debugf ( " " , request ) r , err := runtimeClient . CreateContainer ( context . Background ( ) , request ) logrus . Debugf ( " " , r ) if err != nil { return " " , err } return r . ContainerId , nil }
CreateContainer creates a new container in specified PodSandbox
CreateContainer creates a new container in specified PodSandbox