fix: limit image name to 64 chars max

This commit is contained in:
Jack Wills
2022-08-27 15:04:34 +00:00
parent a3168daa3f
commit b8f7763dd5
+2 -2
View File
@@ -478,10 +478,10 @@ impl AppData {
current_container.state = state; current_container.state = state;
}; };
if current_container.image != image { if current_container.image != image {
current_container.image = image; current_container.image = image.chars().into_iter().take(64).collect();
}; };
} else { } else {
let mut container = ContainerItem::new(id.clone(), status, image, state, name); let mut container = ContainerItem::new(id.clone(), status, image.chars().into_iter().take(64).collect(), state, name);
container.logs.end(); container.logs.end();
self.containers.items.push(container); self.containers.items.push(container);
} }