Create a Docker, Swarm or Podman setup policy

Define a policy by configuring cluster settings, resources, and deployment options for Docker, Swarm or Podman environments.

To create a setup policy, in the menu, expand Environment related, select Policies, and then choose Create policy. From the list, select Setup and select Continue to begin configuring the policy.

Field/Option
Overview

Name

Define a name for this policy.

Environment groups

Select one or more environment groups from the dropdown menu.

Enable host management features

Enabling host management features allows you to see the available devices and storage on the physical node as well as browse the node's filesystem. Further details of this can be seen in the host setup documentation.

Enable volume management for non-administrators

Enabling this feature allows non-administrator users to manage volumes on an environment. If this is disabled, users below administrator level have read-only access to volumes.

Show GPU in the UI

Toggle on to enable GPU assignments in the Portainer UI. This adds additional processing to the container and stack listing pages, so if you are not using GPUs on your environment we recommend toggling this off.

Add GPU

When Show GPU in the UI is toggled on, click Add GPU to add GPUs to your environment for use by your containers. To add a GPU, provide a name for the GPU and an index or UUID to reference the GPU.

Show image up to date indicators for Stacks, Services and Containers

Toggle on to enable the new image indicator feature for this environment.

Enable Change Window

This setting allows you to specify a window within which GitOps updates to your applications can be applied.

When you have completed the form, click Create policy.

Last updated

Was this helpful?