diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-23 19:28:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 19:28:08 +0100 |
commit | 73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37 (patch) | |
tree | 98bbc1c08061cde903f5b1aef21790d66e8e742e /pkg/specgen/generate | |
parent | 5570b5b9751894d509be2b478685097cf8fde923 (diff) | |
parent | e8c06fac97f56ccc710584731d8b52ed58fbd2dd (diff) | |
download | podman-73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37.tar.gz podman-73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37.tar.bz2 podman-73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37.zip |
Merge pull request #12627 from rhatdan/passwd
Allow users to add host user accounts to /etc/passwd
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r-- | pkg/specgen/generate/container_create.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go index 1debf6c0e..7ab9d1b29 100644 --- a/pkg/specgen/generate/container_create.go +++ b/pkg/specgen/generate/container_create.go @@ -156,6 +156,10 @@ func MakeContainer(ctx context.Context, rt *libpod.Runtime, s *specgen.SpecGener return nil, nil, nil, err } + if len(s.HostUsers) > 0 { + options = append(options, libpod.WithHostUsers(s.HostUsers)) + } + command, err := makeCommand(ctx, s, imageData, rtc) if err != nil { return nil, nil, nil, err |