(cmd *cobra.Command, args []string)
| 385 | } |
| 386 | |
| 387 | func initContainerHelp(cmd *cobra.Command, args []string) { |
| 388 | if utils.IsInsideContainer() { |
| 389 | if !utils.IsInsideToolboxContainer() { |
| 390 | fmt.Fprintf(os.Stderr, "Error: this is not a Toolbx container\n") |
| 391 | return |
| 392 | } |
| 393 | |
| 394 | if _, err := utils.ForwardToHost(); err != nil { |
| 395 | fmt.Fprintf(os.Stderr, "Error: %s\n", err) |
| 396 | return |
| 397 | } |
| 398 | |
| 399 | return |
| 400 | } |
| 401 | |
| 402 | if err := showManual("toolbox-init-container"); err != nil { |
| 403 | fmt.Fprintf(os.Stderr, "Error: %s\n", err) |
| 404 | return |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | func applyCDISpecForNvidia(spec *specs.Spec) error { |
| 409 | if spec == nil { |
nothing calls this directly
no test coverage detected
searching dependent graphs…