mirror of https://github.com/containers/podman.git
api: honor the userns for the infra container
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
fa2590a97a
commit
f70976a7e2
|
@ -46,6 +46,9 @@ func PodCreate(w http.ResponseWriter, r *http.Request) {
|
|||
infraOptions.Net = &entities.NetOptions{}
|
||||
infraOptions.Devices = psg.Devices
|
||||
infraOptions.SecurityOpt = psg.SecurityOpt
|
||||
if !psg.Userns.IsDefault() {
|
||||
infraOptions.UserNS = psg.Userns.String()
|
||||
}
|
||||
if psg.ShareParent == nil {
|
||||
t := true
|
||||
psg.ShareParent = &t
|
||||
|
|
Loading…
Reference in New Issue