updated default_name to unknown

This commit is contained in:
Umer Farooq Mala 2024-12-22 15:41:23 +05:00 committed by GitHub
parent a8b3b8a756
commit 6eb57594a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,7 +259,7 @@ func (c *DockerCommand) GetContainers(existingContainers []*Container) ([]*Conta
} else if name, ok := ctr.Labels["name"]; ok {
newContainer.Name = name
} else {
newContainer.Name = "default_name"
newContainer.Name = "Unknown"
}
newContainer.ServiceName = ctr.Labels["com.docker.compose.service"]
newContainer.ProjectName = ctr.Labels["com.docker.compose.project"]