MCPcopy
hub / github.com/containers/toolbox / initContainerHelp

Function initContainerHelp

src/cmd/initContainer.go:387–406  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

385}
386
387func 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
408func applyCDISpecForNvidia(spec *specs.Spec) error {
409 if spec == nil {

Callers

nothing calls this directly

Calls 1

showManualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…