# Connect to the Docker Socket
Connecting to the Docker 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 Docker 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 /var/run/docker.sock socket path. |
| Socket Path | If Override default socket path is enabled, enter the path to the Docker socket. |

