Add container command.
(cmd string, args ...string)
| 443 | |
| 444 | // Add container command. |
| 445 | func WithCommand(cmd string, args ...string) ContainerOpts { |
| 446 | return func(c *runtime.ContainerConfig) { |
| 447 | c.Command = []string{cmd} |
| 448 | c.Args = args |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | // Add pid namespace mode. |
| 453 | func WithPidNamespace(mode runtime.NamespaceMode) ContainerOpts { |
no outgoing calls
no test coverage detected
searching dependent graphs…