mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 15:11:02 +00:00
Avoid a memory leak with Service Containers
This commit is contained in:
parent
3ac4b90e8f
commit
9d09a5fe4b
1 changed files with 1 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ func (c *DockerCommand) assignContainersToServices(containers []*Container, serv
|
|||
// Index Services by name.
|
||||
serviceMap := make(map[string]*Service)
|
||||
for _, service := range services {
|
||||
service.Containers = make([]*Container, 0, 1)
|
||||
serviceMap[service.Name] = service
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue