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