mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Allow users to expose ports from the pod to the host
we need to allow users to expose ports to the host for the purposes of networking, like a webserver. the port exposure must be done at the time the pod is created. strictly speaking, the port exposure occurs on the infra container. Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -335,7 +335,6 @@ func (c *CreateConfig) GetContainerCreateOptions(runtime *libpod.Runtime) ([]lib
|
||||
}
|
||||
options = append(options, runtime.WithPod(pod))
|
||||
}
|
||||
|
||||
if len(c.PortBindings) > 0 {
|
||||
portBindings, err = c.CreatePortBindings()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user