mirror of https://github.com/portainer/portainer
82 lines
3.4 KiB
HTML
82 lines
3.4 KiB
HTML
<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">
|
|
<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>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</rd-widget-body>
|
|
</rd-widget>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<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>
|
|
</div>
|
|
</div>
|