diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-01-12 07:20:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-12 07:20:36 -0800 |
commit | a08da3768255c1155aa14b73bf17d34e5214c568 (patch) | |
tree | 3f4f1272973d5cf8b45cbc04873d1a3d3a5952d6 /cmd/podman/create.go | |
parent | 5c86efb28976938ad77fcc0f677e0842d06b65b5 (diff) | |
parent | e10baba32673d4b6d9ada129941428fc8f8304eb (diff) | |
download | podman-a08da3768255c1155aa14b73bf17d34e5214c568.tar.gz podman-a08da3768255c1155aa14b73bf17d34e5214c568.tar.bz2 podman-a08da3768255c1155aa14b73bf17d34e5214c568.zip |
Merge pull request #2145 from baude/playcontainerintopod
podman play kube: add containers to pod
Diffstat (limited to 'cmd/podman/create.go')
-rw-r--r-- | cmd/podman/create.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 87fa18e47..1aa3425a5 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -145,7 +145,7 @@ func createContainer(c *cli.Context, runtime *libpod.Runtime) (*libpod.Container return nil, nil, err } - ctr, err := createContainerFromCreateConfig(runtime, createConfig, ctx) + ctr, err := createContainerFromCreateConfig(runtime, createConfig, ctx, nil) if err != nil { return nil, nil, err } @@ -832,17 +832,16 @@ func joinOrCreateRootlessUserNamespace(createConfig *cc.CreateConfig, runtime *l return rootless.BecomeRootInUserNS() } -func createContainerFromCreateConfig(r *libpod.Runtime, createConfig *cc.CreateConfig, ctx context.Context) (*libpod.Container, error) { +func createContainerFromCreateConfig(r *libpod.Runtime, createConfig *cc.CreateConfig, ctx context.Context, pod *libpod.Pod) (*libpod.Container, error) { runtimeSpec, err := cc.CreateConfigToOCISpec(createConfig) if err != nil { return nil, err } - options, err := createConfig.GetContainerCreateOptions(r) + options, err := createConfig.GetContainerCreateOptions(r, pod) if err != nil { return nil, err } - became, ret, err := joinOrCreateRootlessUserNamespace(createConfig, r) if err != nil { return nil, err |