summaryrefslogtreecommitdiff
path: root/cmd/podman/common/create_opts.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-24 10:30:11 -0400
committerGitHub <noreply@github.com>2021-08-24 10:30:11 -0400
commite9daaf62e3921b8c696f3abd92f001a9447c8aa1 (patch)
treeea500d48f28682ad36f6eb4954717c6629fb68b4 /cmd/podman/common/create_opts.go
parente20ec47a59b4ac65d42f3fee7b8b7ec5760ea35d (diff)
parentc0b1edd6a4dcad2b89a01975988d186b21b3158e (diff)
downloadpodman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.tar.gz
podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.tar.bz2
podman-e9daaf62e3921b8c696f3abd92f001a9447c8aa1.zip
Merge pull request #11232 from Luap99/network
Network interface
Diffstat (limited to 'cmd/podman/common/create_opts.go')
-rw-r--r--cmd/podman/common/create_opts.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go
index e046e5a19..c94f46cf2 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -10,6 +10,7 @@ import (
"github.com/containers/common/pkg/config"
"github.com/containers/podman/v3/cmd/podman/registry"
+ "github.com/containers/podman/v3/libpod/network/types"
"github.com/containers/podman/v3/pkg/api/handlers"
"github.com/containers/podman/v3/pkg/cgroups"
"github.com/containers/podman/v3/pkg/domain/entities"
@@ -150,7 +151,7 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c
cappDrop []string
entrypoint *string
init bool
- specPorts []specgen.PortMapping
+ specPorts []types.PortMapping
)
if cc.HostConfig.Init != nil {
@@ -240,7 +241,7 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c
if err != nil {
return nil, nil, err
}
- tmpPort := specgen.PortMapping{
+ tmpPort := types.PortMapping{
HostIP: pb.HostIP,
ContainerPort: uint16(port.Int()),
HostPort: uint16(hostport),