From 6e2e643f1fb2b2c94b39f8bc70f080a721bacab8 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 12 Jul 2018 07:09:27 +0200 Subject: [PATCH] fix(containers): fix an issue when removing a container with agent proxy (#2036) --- .../actions/containersDatatableActionsController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/docker/components/datatables/containers-datatable/actions/containersDatatableActionsController.js b/app/docker/components/datatables/containers-datatable/actions/containersDatatableActionsController.js index 94ce439b3..88980f8f3 100644 --- a/app/docker/components/datatables/containers-datatable/actions/containersDatatableActionsController.js +++ b/app/docker/components/datatables/containers-datatable/actions/containersDatatableActionsController.js @@ -86,6 +86,7 @@ function ($state, ContainerService, ModalService, Notifications, HttpRequestHelp function removeSelectedContainers(containers, cleanVolumes) { var actionCount = containers.length; angular.forEach(containers, function (container) { + HttpRequestHelper.setPortainerAgentTargetHeader(container.NodeName); ContainerService.remove(container, cleanVolumes) .then(function success() { Notifications.success('Container successfully removed', container.Names[0]);