// StopPodSandbox stops the sandbox. If there are any running containers in the
// sandbox, they should be force terminated.
StopPodSandbox stops the sandbox. If there are any running containers in the
sandbox, they should be force terminated.
// StopPodSandbox stops the sandbox . If there are any running containers in the // sandbox they should be force terminated .
func (u *UnikernelRuntime) StopPodSandbox(podSandboxID string) error {
	sandbox, err := u.sandboxStore.Get(podSandboxID)
	if err != nil {
		return fmt.Errorf("failed to find sandbox(%q): %v", podSandboxID, err)
	}
	if err = u.vmTool.StopVM(sandbox.ID, 0); err != nil {
		return fmt.Errorf("failed to stop sandbox(%q): %v", sandbox.ID, err)
	}
	err = u.sandboxStore.Update(sandbox.ID, func(meta metadata.SandboxMetadata) (metadata.SandboxMetadata, error) {
		meta.State = kubeapi.PodSandboxState_SANDBOX_NOTREADY
		return meta, nil
	})
	return nil
}
func ( u * UnikernelRuntime ) StopPodSandbox ( podSandboxID string ) error { sandbox , err := u . sandboxStore . Get ( podSandboxID ) if err != nil { return fmt . Errorf ( " " , podSandboxID , err ) } if err = u . vmTool . StopVM ( sandbox . ID , 0 ) ; err != nil { return fmt . Errorf ( " " , sandbox . ID , err ) } err = u . sandboxStore . Update ( sandbox . ID , func ( meta metadata . SandboxMetadata ) ( metadata . SandboxMetadata , error ) { meta . State = kubeapi . PodSandboxState_SANDBOX_NOTREADY return meta , nil } ) return nil }
StopPodSandbox stops the sandbox.
StopPodSandbox stops the sandbox .
// Stop relate VM // Update sandbox metadata