mirror of https://github.com/portainer/portainer
feat(container-details): update re-creation flow (#2193)
parent
1b51daf9c4
commit
64beaaa279
|
@ -631,8 +631,8 @@ function ($q, $scope, $state, $timeout, $transition$, $filter, Container, Contai
|
||||||
return $q.when();
|
return $q.when();
|
||||||
}
|
}
|
||||||
$scope.state.actionInProgress = true;
|
$scope.state.actionInProgress = true;
|
||||||
return stopAndRenameContainer(oldContainer)
|
return pullImageIfNeeded()
|
||||||
.then(pullImageIfNeeded)
|
.then(stopAndRenameContainer(oldContainer))
|
||||||
.then(createNewContainer)
|
.then(createNewContainer)
|
||||||
.then(applyResourceControl)
|
.then(applyResourceControl)
|
||||||
.then(connectToExtraNetworks)
|
.then(connectToExtraNetworks)
|
||||||
|
|
|
@ -196,9 +196,9 @@ function ($q, $scope, $state, $transition$, $filter, Commit, ContainerHelper, Co
|
||||||
$scope.state.recreateContainerInProgress = true;
|
$scope.state.recreateContainerInProgress = true;
|
||||||
var isRunning = container.State.Running;
|
var isRunning = container.State.Running;
|
||||||
|
|
||||||
return stopContainerIfNeeded()
|
return pullImageIfNeeded()
|
||||||
|
.then(stopContainerIfNeeded)
|
||||||
.then(renameContainer)
|
.then(renameContainer)
|
||||||
.then(pullImageIfNeeded)
|
|
||||||
.then(setMainNetworkAndCreateContainer)
|
.then(setMainNetworkAndCreateContainer)
|
||||||
.then(connectContainerToOtherNetworks)
|
.then(connectContainerToOtherNetworks)
|
||||||
.then(startContainerIfNeeded)
|
.then(startContainerIfNeeded)
|
||||||
|
|
Loading…
Reference in New Issue