diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-05 05:51:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 05:51:19 -0400 |
commit | 7af4612d6b969329a78b4945c35a641449989a2d (patch) | |
tree | 1b4e70fa3cce85f9d0ab53ae0b3cd8fb97da0faf /pkg/specgen/generate/container.go | |
parent | 97beca9e83ea5afee5f07249967cb1bdda2b9803 (diff) | |
parent | 1585b175dbf47e7ee0d5a26600aaec898ec5c26b (diff) | |
download | podman-7af4612d6b969329a78b4945c35a641449989a2d.tar.gz podman-7af4612d6b969329a78b4945c35a641449989a2d.tar.bz2 podman-7af4612d6b969329a78b4945c35a641449989a2d.zip |
Merge pull request #14059 from cdoern/clone
pass networks to container clone
Diffstat (limited to 'pkg/specgen/generate/container.go')
-rw-r--r-- | pkg/specgen/generate/container.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container.go b/pkg/specgen/generate/container.go index 831c1d7b9..63caaa77c 100644 --- a/pkg/specgen/generate/container.go +++ b/pkg/specgen/generate/container.go @@ -501,6 +501,8 @@ func ConfigToSpec(rt *libpod.Runtime, specg *specgen.SpecGenerator, contaierID s _, mounts := c.SortUserVolumes(c.Spec()) specg.Mounts = mounts specg.HostDeviceList = conf.DeviceHostSrc + specg.Networks = conf.Networks + mapSecurityConfig(conf, specg) if c.IsInfra() { // if we are creating this spec for a pod's infra ctr, map the compatible options |