mirror of
https://github.com/unraid/webgui.git
synced 2026-04-22 10:08:25 -05:00
Fix: Docker remove context item should delete container not image
This commit is contained in:
@@ -493,7 +493,6 @@ class DockerUpdate{
|
||||
|
||||
public function setUpdateStatus($image, $version) {
|
||||
global $dockerManPaths;
|
||||
$DockerClient = new DockerClient();
|
||||
$update_file = $dockerManPaths['update-status'];
|
||||
$updateStatus = (is_file($update_file)) ? json_decode(file_get_contents($update_file), true) : [];
|
||||
$updateStatus[$image] = [
|
||||
|
||||
@@ -119,7 +119,7 @@ function rmContainer(container, image, id) {
|
||||
if ($("#removeimagechk").prop('checked')) {
|
||||
eventControl({action: "remove_all", container: id, image: image});
|
||||
} else {
|
||||
eventControl({action: "remove_image", image: image});
|
||||
eventControl({action: "remove_container", container: id});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user