1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

fix: fixes broken image tag in title bar (#3176)

This commit is contained in:
Amir Raminfar
2024-08-02 17:24:18 -07:00
committed by GitHub
parent db1cccc61f
commit b38a02f5ba
8 changed files with 6 additions and 16 deletions

View File

@@ -368,7 +368,6 @@ func newContainer(c types.Container, host string) Container {
ID: c.ID[:12],
Name: name,
Image: c.Image,
ImageID: c.ImageID,
Command: c.Command,
Created: time.Unix(c.Created, 0),
State: c.State,
@@ -390,11 +389,12 @@ func newContainerFromJSON(c types.ContainerJSON, host string) Container {
group = c.Config.Labels["dev.dozzle.group"]
}
log.Debugf("newContainerFromJSON: %s", c.Config.Image)
container := Container{
ID: c.ID[:12],
Name: name,
Image: c.Image,
ImageID: c.Image,
Image: c.Config.Image,
Command: strings.Join(c.Config.Entrypoint, " ") + " " + strings.Join(c.Config.Cmd, " "),
State: c.State.Status,
Host: host,