2021-02-09 08:09:06 +00:00
|
|
|
<rd-header>
|
|
|
|
<rd-header-title title-text="Docker features configuration"></rd-header-title>
|
|
|
|
<rd-header-content>Docker configuration</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-body>
|
|
|
|
<form class="form-horizontal" name="$ctrl.form">
|
|
|
|
<div class="col-sm-12 form-section-title">
|
|
|
|
Host and Filesystem
|
|
|
|
</div>
|
|
|
|
<div ng-if="!$ctrl.isAgent" class="form-group">
|
|
|
|
<span class="col-sm-12 text-muted small">
|
|
|
|
<i class="fa fa-info-circle blue-icon" aria-hidden="true" style="margin-right: 2px;"></i>
|
2021-09-08 08:42:17 +00:00
|
|
|
These features are only available for an Agent enabled environments.
|
2021-02-09 08:09:06 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.enableHostManagementFeatures"
|
|
|
|
name="'enableHostManagementFeatures'"
|
|
|
|
label="'Enable host management features'"
|
|
|
|
tooltip="'Enable host management features: host system browsing and advanced host details.'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
2021-02-09 08:09:06 +00:00
|
|
|
disabled="!$ctrl.isAgent"
|
2021-12-14 19:14:53 +00:00
|
|
|
on-change="($ctrl.onChangeEnableHostManagementFeatures)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.allowVolumeBrowserForRegularUsers"
|
|
|
|
name="'allowVolumeBrowserForRegularUsers'"
|
|
|
|
label="'Enable volume management for non-administrators'"
|
|
|
|
tooltip="'When enabled, regular users will be able to use Portainer volume management features.'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeAllowVolumeBrowserForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
disabled="!$ctrl.isAgent"
|
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-02 20:57:21 +00:00
|
|
|
<!-- auto update window -->
|
|
|
|
<div class="col-sm-12 form-section-title">
|
|
|
|
Change Window Setting
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.state.autoUpdateSettings.Enabled"
|
|
|
|
name="'disableSysctlSettingForRegularUsers'"
|
|
|
|
label="'Enable Change Window'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
feature-id="$ctrl.limitedFeature"
|
|
|
|
tooltip="'Specify a time-frame during which automatic updates can occur in this environment.'"
|
|
|
|
on-change="($ctrl.onToggleAutoUpdate)"
|
2021-11-02 20:57:21 +00:00
|
|
|
>
|
|
|
|
</por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-02-09 08:09:06 +00:00
|
|
|
<!-- security -->
|
|
|
|
<div class="col-sm-12 form-section-title">
|
|
|
|
Docker Security Settings
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disableBindMountsForRegularUsers"
|
|
|
|
name="'disableBindMountsForRegularUsers'"
|
|
|
|
label="'Disable bind mounts for non-administrators'"
|
|
|
|
tooltip="'When enabled, regular users will not be able to use bind mounts when creating containers.'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisableBindMountsForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disablePrivilegedModeForRegularUsers"
|
|
|
|
name="'disablePrivilegedModeForRegularUsers'"
|
|
|
|
label="'Disable privileged mode for non-administrators'"
|
|
|
|
tooltip="'When enabled, regular users will not be able to use privileged mode when creating containers.'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisablePrivilegedModeForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disableHostNamespaceForRegularUsers"
|
|
|
|
name="'disableHostNamespaceForRegularUsers'"
|
|
|
|
label="'Disable the use of host PID 1 for non-administrators'"
|
|
|
|
tooltip="'Prevent users from accessing the host filesystem through the host PID namespace.'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisableHostNamespaceForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disableStackManagementForRegularUsers"
|
|
|
|
name="'disableStackManagementForRegularUsers'"
|
|
|
|
label="'Disable the use of Stacks for non-administrators'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisableStackManagementForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disableDeviceMappingForRegularUsers"
|
|
|
|
name="'disableDeviceMappingForRegularUsers'"
|
|
|
|
label="'Disable device mappings for non-administrators'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisableDeviceMappingForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disableContainerCapabilitiesForRegularUsers"
|
|
|
|
name="'disableContainerCapabilitiesForRegularUsers'"
|
|
|
|
label="'Disable container capabilities for non-administrators'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisableContainerCapabilitiesForRegularUsers)"
|
2021-02-09 08:09:06 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-12 07:40:45 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<por-switch-field
|
2021-12-14 19:14:53 +00:00
|
|
|
checked="$ctrl.formValues.disableSysctlSettingForRegularUsers"
|
|
|
|
name="'disableSysctlSettingForRegularUsers'"
|
|
|
|
label="'Disable sysctl settings for non-administrators'"
|
|
|
|
label-class="'col-sm-7 col-lg-4'"
|
|
|
|
on-change="($ctrl.onChangeDisableSysctlSettingForRegularUsers)"
|
2021-04-12 07:40:45 +00:00
|
|
|
></por-switch-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-09 08:09:06 +00:00
|
|
|
|
|
|
|
<div class="form-group" ng-if="$ctrl.isContainerEditDisabled()">
|
|
|
|
<span class="col-sm-12 text-muted small">
|
|
|
|
<i class="fa fa-info-circle blue-icon" aria-hidden="true" style="margin-right: 2px;"></i>
|
|
|
|
Note: The recreate/duplicate/edit feature is currently disabled (for non-admin users) by one or more security settings.
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<!-- !security -->
|
|
|
|
|
|
|
|
<!-- actions -->
|
|
|
|
<div class="col-sm-12 form-section-title">
|
|
|
|
Actions
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<button type="button" class="btn btn-primary btn-sm" ng-click="$ctrl.save()" ng-disabled="$ctrl.state.actionInProgress" button-spinner="$ctrl.state.actionInProgress">
|
|
|
|
<span ng-hide="$ctrl.state.actionInProgress">Save configuration</span>
|
|
|
|
<span ng-show="$ctrl.state.actionInProgress">Saving...</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !actions -->
|
|
|
|
</form>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|