diff --git a/api/portainer.go b/api/portainer.go index 783e6c8a3..9cb0d064f 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -196,6 +196,7 @@ type ( GitlabRegistryData struct { ProjectID int `json:"ProjectId"` InstanceURL string `json:"InstanceURL"` + ProjectPath string `json:"ProjectPath"` } // Registry represents a Docker registry with all the info required diff --git a/app/docker/components/imageRegistry/por-image-registry.js b/app/docker/components/imageRegistry/por-image-registry.js index 568b12ce5..39d6a5919 100644 --- a/app/docker/components/imageRegistry/por-image-registry.js +++ b/app/docker/components/imageRegistry/por-image-registry.js @@ -2,8 +2,8 @@ angular.module('portainer.docker').component('porImageRegistry', { templateUrl: './porImageRegistry.html', controller: 'porImageRegistryController', bindings: { - 'image': '=', - 'registry': '=', + 'model': '=', // must be of type PorImageRegistryModel + 'pullWarning': '<', 'autoComplete': '<', 'labelClass': '@', 'inputClass': '@' diff --git a/app/docker/components/imageRegistry/porImageRegistry.html b/app/docker/components/imageRegistry/porImageRegistry.html index aae64be66..05bc7ea07 100644 --- a/app/docker/components/imageRegistry/porImageRegistry.html +++ b/app/docker/components/imageRegistry/porImageRegistry.html @@ -1,21 +1,54 @@ -
Image name is required.
+ +Image name is required. Tag must be specified otherwise Portainer will pull all tags associated to the image.
+{{ config.Image }}
image is not registered inside Portainer, you will not be able to create a container. Please register that registry first.