# Create a Docker, Swarm or Podman registry policy

Define a policy by managing registry access and configuration for Kubernetes clusters.

To create a registry policy, in the menu, under **Environment-related**, select **Policies** then select **Create policy**. From the policy type list, navigate to the **Docker** > **Registry** section, select **Custom** then select **Continue** to begin configuring the policy.

{% hint style="info" %}
Currently, only custom registry policies can be created. Future improvements to the policies feature will introduce policy templates.
{% endhint %}

| Field/Option              | Overview                                                                                                                                                                                                               |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                      | Define a name for this policy.                                                                                                                                                                                         |
| Environment groups        | <p>Select one or more environment <a href="../../groups">groups</a> from the dropdown menu.<br>If the selected group is already included in an existing policy, a warning icon will appear next to the group name.</p> |
| Select registry           | ​Select a [registry](https://docs.portainer.io/sts/user/kubernetes/cluster/registries) from the dropdown menu. ​                                                                                                       |
| Select users and/or teams | Select one or more [user](https://docs.portainer.io/sts/admin/user/users) or [team](https://docs.portainer.io/sts/admin/user/teams) that you want to have access to the selected registry.                             |

<figure><img src="https://679325054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMdgxA76kWxcRmwybM8Ft%2Fuploads%2FbKPoyPZEdfN0YGqgtYcW%2F2.40.0-registry-policy-configuration.png?alt=media&#x26;token=e21dcd59-cd25-45c1-8ed6-d079465a1903" alt=""><figcaption></figcaption></figure>

Click **Add Access** to add the registry to the access list, multiple entries can be added. Each access added will show in the **Registry access list**. When you have finished adding access, click **Create policy**. A confirmation screen displays the changes being made and any existing policy that will be replaced. Click **Confirm** to acknowledge the changes and create the policy.
