Skip to content

Commit

Permalink
chore: lookup exposed ports in the image from Config, not from Contai…
Browse files Browse the repository at this point in the history
…nerConfig (#2039)

* fix: lookup exposed ports in the image config too

* chore: remove ContainerConfig
  • Loading branch information
mdelapenya authored Dec 21, 2023
1 parent a9f0ac8 commit 5faf6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func (p *DockerProvider) preCreateContainerHook(ctx context.Context, req Contain
if err != nil {
return err
}
for p := range image.ContainerConfig.ExposedPorts {
for p := range image.Config.ExposedPorts {
exposedPorts = append(exposedPorts, string(p))
}
}
Expand Down

0 comments on commit 5faf6f4

Please sign in to comment.