mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-22 16:54:25 +01:00
runtime: delete unused sub-commands.
This PR delete codes not used anymore. Fixes: #332 Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
@@ -873,11 +873,17 @@ func Example_createAndStartSandbox() {
|
||||
Containers: []vc.ContainerConfig{container},
|
||||
}
|
||||
|
||||
_, err := vc.RunSandbox(sandboxConfig)
|
||||
// Create the sandbox
|
||||
s, err := vc.CreateSandbox(context.Background(), sandboxConfig, nil)
|
||||
if err != nil {
|
||||
fmt.Printf("Could not run sandbox: %s", err)
|
||||
fmt.Printf("Could not create sandbox: %s", err)
|
||||
return
|
||||
}
|
||||
|
||||
return
|
||||
// Start the sandbox
|
||||
err = s.Start()
|
||||
if err != nil {
|
||||
fmt.Printf("Could not start sandbox: %s", err)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user