mirror of https://github.com/portainer/portainer
fix(containers): fix an issue when removing a container with agent proxy (#2036)
parent
e156aa202e
commit
6e2e643f1f
|
@ -86,6 +86,7 @@ function ($state, ContainerService, ModalService, Notifications, HttpRequestHelp
|
||||||
function removeSelectedContainers(containers, cleanVolumes) {
|
function removeSelectedContainers(containers, cleanVolumes) {
|
||||||
var actionCount = containers.length;
|
var actionCount = containers.length;
|
||||||
angular.forEach(containers, function (container) {
|
angular.forEach(containers, function (container) {
|
||||||
|
HttpRequestHelper.setPortainerAgentTargetHeader(container.NodeName);
|
||||||
ContainerService.remove(container, cleanVolumes)
|
ContainerService.remove(container, cleanVolumes)
|
||||||
.then(function success() {
|
.then(function success() {
|
||||||
Notifications.success('Container successfully removed', container.Names[0]);
|
Notifications.success('Container successfully removed', container.Names[0]);
|
||||||
|
|
Loading…
Reference in New Issue