mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
fix: Resolving several identified vulnerabilities
This commit is contained in:
parent
76f9cea516
commit
bc35a17f24
8 changed files with 238 additions and 178 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue