Skip to content

pangolin-cli ignoring env variable for socket path #41

@baldemar-wuda

Description

@baldemar-wuda

Describe the Bug

The Pangolin CLI does not respect the SOCKET_PATH environment variable. Even when the variable is explicitly set, the CLI still attempts to connect using the default socket path.

services:
pangolin-cli:
image: fosrl/pangolin-cli
container_name: pangolin-cli
restart: unless-stopped
network_mode: host
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- PANGOLIN_ENDPOINT=https://test.example
- INTERFACE="cli-custom1"
- SOCKET_PATH="/var/run/custom1.sock"
- CLIENT_ID=xxx
- CLIENT_SECRET=xxx

2026-03-07 16:56:45.939731+00:00INFO: 2026/03/07 16:56:45 Starting HTTP server on socket /var/run/olm.sock

This behavior appears to be specific to the Pangolin CLI.
When using the container image fosrl/olm, the SOCKET_PATH environment variable is respected and the service correctly uses the custom socket path.

Environment

  • Pangolin CLI Version: 0.5.1

To Reproduce

  1. Set the SOCKET_PATH environment variable
  2. Start the Pangolin CLI.
  3. Observe that the CLI still attempts to connect to the default socket path instead of the one defined in SOCKET_PATH.

Expected Behavior

The CLI should use the socket path provided via the SOCKET_PATH environment variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions