mirror of https://github.com/portainer/portainer
fix(container-creation): match container_network by id (#3398)
parent
1a65dbf85f
commit
7f54584ed6
|
@ -358,7 +358,7 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container
|
|||
var netContainer = $scope.config.HostConfig.NetworkMode.split(/^container:/)[1];
|
||||
$scope.config.HostConfig.NetworkMode = 'container';
|
||||
for (var c in $scope.runningContainers) {
|
||||
if ($scope.runningContainers[c].Names && $scope.runningContainers[c].Names[0] === '/' + netContainer) {
|
||||
if ($scope.runningContainers[c].Id == netContainer) {
|
||||
$scope.formValues.NetworkContainer = $scope.runningContainers[c];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue