diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-12-09 09:52:03 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-12-09 13:09:02 -0500 |
commit | 593d0907c5c11e933be7dbdce98022f76183ea3c (patch) | |
tree | be7e40888a198e58bd9ac64ffe6c4189eb119309 /pkg/domain/entities | |
parent | c7ed2be8d2745eca7a9bcabf7f40e869baa8c5ec (diff) | |
download | podman-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/domain/entities')
-rw-r--r-- | pkg/domain/entities/types.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/domain/entities/types.go b/pkg/domain/entities/types.go index ec4d4a902..e062b9442 100644 --- a/pkg/domain/entities/types.go +++ b/pkg/domain/entities/types.go @@ -29,8 +29,6 @@ type PodDeleteReport struct{ Report } type VolumeDeleteOptions struct{} type VolumeDeleteReport struct{ Report } -// NetOptions reflect the shared network options between -// pods and containers type NetFlags struct { AddHosts []string `json:"add-host,omitempty"` DNS []string `json:"dns,omitempty"` @@ -43,6 +41,9 @@ type NetFlags struct { Network string `json:"network,omitempty"` NetworkAlias []string `json:"network-alias,omitempty"` } + +// NetOptions reflect the shared network options between +// pods and containers type NetOptions struct { AddHosts []string `json:"hostadd,omitempty"` Aliases []string `json:"network_alias,omitempty"` |