fix: Resolving several identified vulnerabilities

This commit is contained in:
Ravikiran Kondapaneni 2025-07-30 01:35:28 -07:00
parent 76f9cea516
commit bc35a17f24
8 changed files with 238 additions and 178 deletions

View file

@ -335,7 +335,7 @@ func (c Container) GetCreateConfig() *dockercontainer.Config {
// subtract ports exposed in image from container
for k := range config.ExposedPorts {
if _, ok := imageConfig.ExposedPorts[k]; ok {
if _, ok := imageConfig.ExposedPorts[string(k)]; ok {
delete(config.ExposedPorts, k)
}
}