add option for node rendering

This commit is contained in:
Christian Goll
2023-01-31 16:59:21 +01:00
parent 5e70a15611
commit 317cd5d4e0
5 changed files with 49 additions and 12 deletions

View File

@@ -68,6 +68,9 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
for _, b := range binds {
allargs = append(allargs, "--bind", b)
}
if nodeName != "" {
allargs = append(allargs, "--node", nodeName)
}
allargs = append(allargs, args...)
containerPath := container.RootFsDir(containerName)