summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-12-09 09:52:03 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-12-09 13:09:02 -0500
commit593d0907c5c11e933be7dbdce98022f76183ea3c (patch)
treebe7e40888a198e58bd9ac64ffe6c4189eb119309 /pkg/specgen/generate
parentc7ed2be8d2745eca7a9bcabf7f40e869baa8c5ec (diff)
downloadpodman-593d0907c5c11e933be7dbdce98022f76183ea3c.tar.gz
podman-593d0907c5c11e933be7dbdce98022f76183ea3c.tar.bz2
podman-593d0907c5c11e933be7dbdce98022f76183ea3c.zip
--hostname should be set when using --pod new:foobar
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2030599 When you create pod, it shares the UTS namespace with Containers. Currently the --hostname is not passed to the pod created when you create a container and pod in the same command. Also fix error message on supported --share flags Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r--pkg/specgen/generate/namespaces.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/specgen/generate/namespaces.go b/pkg/specgen/generate/namespaces.go
index 5349e224f..7d63fc10f 100644
--- a/pkg/specgen/generate/namespaces.go
+++ b/pkg/specgen/generate/namespaces.go
@@ -474,7 +474,7 @@ func GetNamespaceOptions(ns []string, netnsIsHost bool) ([]libpod.PodCreateOptio
case "none":
return erroredOptions, nil
default:
- return erroredOptions, errors.Errorf("Invalid kernel namespace to share: %s. Options are: net, pid, ipc, uts or none", toShare)
+ return erroredOptions, errors.Errorf("Invalid kernel namespace to share: %s. Options are: cgroup, ipc, net, pid, uts or none", toShare)
}
}
return options, nil