---
metaLinks:
alternates:
- >-
https://app.gitbook.com/s/j6QEqM3Sd94bdPsX4HaN/admin/environments/add/podman/socket
---
# Connect to the Podman Socket
{% hint style="warning" %}
Connecting to the Podman Socket is a legacy option that does not support edge features or policy management. For most use cases, [the Edge Agent is recommended](../../../../faqs/getting-started/why-do-we-recommend-using-the-edge-agent-instead-of-the-traditional-agent.md).
{% endhint %}
Connecting to the Podman socket directly can only be done from the local environment. Before you begin, ensure the user running the Portainer Server container has permissions to access the Podman socket.
From the menu expand **Environment-related**, click **Environments**, then click **Add environment**.



| Field/Option | Overview |
|---|---|
| Name | Give the environment a descriptive name. |
| Override default socket path | Toggle this option on to override the default socket path. |
| Socket Path | If Override default socket path is enabled, enter the path to the Podman socket. |

