2017-06-20 11:00:32 +00:00
< rd-header >
< rd-header-title title = "Registries" >
< a data-toggle = "tooltip" title = "Refresh" ui-sref = "registries" ui-sref-opts = "{reload: true}" >
< i class = "fa fa-refresh" aria-hidden = "true" > < / i >
< / a >
< / rd-header-title >
< rd-header-content > Registry management< / rd-header-content >
< / rd-header >
< div class = "row" ng-if = "dockerhub" >
< div class = "col-sm-12" >
< rd-widget >
< rd-widget-header icon = "fa-database" title = "DockerHub" >
< / rd-widget-header >
< rd-widget-body >
< form class = "form-horizontal" >
<!-- note -->
< div class = "form-group" >
< span class = "col-sm-12 text-muted small" >
The DockerHub registry can be used by any user. You can specify the credentials that will be used to push & pull images here.
< / span >
< / div >
<!-- !note -->
<!-- authentication - checkbox -->
< div class = "form-group" >
< div class = "col-sm-12" >
< label for = "registry_auth" class = "control-label text-left" >
Authentication
< portainer-tooltip position = "bottom" message = "Enable this option if you need to specify credentials to connect to push/pull private images." > < / portainer-tooltip >
< / label >
< label class = "switch" style = "margin-left: 20px;" >
< input type = "checkbox" ng-model = "dockerhub.Authentication" > < i > < / i >
< / label >
< / div >
< / div >
<!-- !authentication - checkbox -->
<!-- authentication - credentials -->
< div ng-if = "dockerhub.Authentication" >
<!-- credentials - user -->
< div class = "form-group" >
< label for = "hub_username" class = "col-sm-3 col-lg-2 control-label text-left" > Username< / label >
< div class = "col-sm-9 col-lg-10" >
< input type = "text" class = "form-control" id = "hub_username" ng-model = "dockerhub.Username" >
< / div >
< / div >
<!-- !credentials - user -->
<!-- credentials - password -->
< div class = "form-group" >
< label for = "hub_password" class = "col-sm-3 col-lg-2 control-label text-left" > Password< / label >
< div class = "col-sm-9 col-lg-10" >
< input type = "password" class = "form-control" id = "hub_password" ng-model = "dockerhub.Password" >
< / div >
< / div >
<!-- !credentials - password -->
< / div >
<!-- !authentication - credentials -->
< div class = "form-group" >
< div class = "col-sm-12" >
2017-11-12 21:39:12 +00:00
< button type = "button" class = "btn btn-primary btn-sm" ng-disabled = "state.actionInProgress || dockerhub.Authentication && (!dockerhub.Username || !dockerhub.Password)" ng-click = "updateDockerHub()" button-spinner = "state.actionInProgress" >
< span ng-hide = "state.actionInProgress" > Update< / span >
< span ng-show = "state.actionInProgress" > Updating DockerHub settings...< / span >
2017-11-12 19:27:28 +00:00
< / button >
2017-06-20 11:00:32 +00:00
< / div >
< / div >
< / form >
< / rd-widget-body >
< / rd-widget >
< / div >
< / div >
< div class = "row" >
< div class = "col-sm-12" >
2017-12-06 11:04:02 +00:00
< registries-datatable
title="Registries" title-icon="fa-database"
dataset="registries" table-key="registries"
order-by="Name" show-text-filter="true"
access-management="applicationState.application.authentication"
remove-action="removeAction"
>< / registries-datatable >
2017-06-20 11:00:32 +00:00
< / div >
< / div >