Fix: Docker remove context item should delete container not image

This commit is contained in:
Eric Schultz
2016-02-23 06:41:58 -08:00
parent 3f1b43c135
commit b541eaa074
2 changed files with 1 additions and 2 deletions
@@ -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});
}
});
}