From be4beacdf7dd89c95164e4e5fa0eb03773b52779 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 5 Sep 2017 16:42:20 +0200 Subject: [PATCH] feat(container-creation): display a warning message when editing a container with an unknow registry (#1143) --- .../createContainerController.js | 1 - .../createContainer/createcontainer.html | 38 +++++++++++-------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/app/components/createContainer/createContainerController.js b/app/components/createContainer/createContainerController.js index ecc556182..5997747f7 100644 --- a/app/components/createContainer/createContainerController.js +++ b/app/components/createContainer/createContainerController.js @@ -403,7 +403,6 @@ function ($q, $scope, $state, $stateParams, $filter, Container, ContainerHelper, } function loadFromContainerImageConfig(d) { - // If no registry found, we let default DockerHub and let full image path var imageInfo = ImageHelper.extractImageAndRegistryFromRepository($scope.config.Image); RegistryService.retrieveRegistryFromRepository($scope.config.Image) .then(function success(data) { diff --git a/app/components/createContainer/createcontainer.html b/app/components/createContainer/createcontainer.html index fdae6b4de..fd282d5b8 100644 --- a/app/components/createContainer/createcontainer.html +++ b/app/components/createContainer/createcontainer.html @@ -21,24 +21,30 @@
Image configuration
- -
- +
+ + The Docker registry for the {{ config.Image }} image is not registered inside Portainer, you will not be able to create a container. Please register that registry first.
- - -
-
- - +
+ +
+
+ + +
+
+ + +
+
+
-
Ports configuration
@@ -106,7 +112,7 @@
- + Cancel {{ state.formValidationError }}