[GH-ISSUE #2345] netbird client inside docker: can not access to status or route list: context deadline exceeded #4961

Open
opened 2026-08-05 01:00:36 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @bravosierrasierra on GitHub (Jul 29, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2345

Describe the problem

Can not access to netbird daemon from outside docker container.
Daemon successfully started and registered in mesh with
docker compose up -d

But i am can not access to daemon stats and routes:

$ docker compose exec netbird_client netbird --daemon-addr=unix:///var/run/netbird.sock status
Error: failed to connect to daemon error: context deadline exceeded
If the daemon is not running please run:
netbird service install
netbird service start

$ docker compose exec netbird_client ls -laF /var/run/
total 8
drwxr-xr-x 2 root root 4096 Jun 18 15:37 ./
drwxr-xr-x 1 root root 4096 Jul 29 14:48 ../
ubuntu@netbird-gw-dev-dc-01 .../docker-compose/netbird $

To Reproduce

use "docker compose up -d" and then "docker compose exec netbird_client netbird status"
with this docker-compose.yaml:

services:
  netbird_client:
    image: "netbirdio/netbird:latest"
    restart: always
    logging:
      driver: local
    labels:
      logging: "promtail"
      logging_jobname: "containerlogs"
    container_name: netbird_client
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN
      - SYS_RESOURCE
    environment:
      - NB_SETUP_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      - NB_HOSTNAME=netbird-gw-dev-dc.domain.com
      - NB_SERVICE=netbird
      - NB_DAEMON_ADDR=unix:///var/run/netbird.sock
      - NB_MANAGEMENT_URL=https://mgmt.domain.com:33073
      - NB_LOG_LEVEL=debug
    volumes:
      - netbird-client:/etc/netbird
    network_mode: host
    privileged: true

volumes:
  netbird-client:
    driver: local

Expected behavior

netbird status should be fetched and printed

Are you using NetBird Cloud?

self-host NetBird's control plane

NetBird version

latest, 0.28.4, 0.27.7

Originally created by @bravosierrasierra on GitHub (Jul 29, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2345 **Describe the problem** Can not access to netbird daemon from outside docker container. Daemon successfully started and registered in mesh with docker compose up -d But i am can not access to daemon stats and routes: $ docker compose exec netbird_client netbird --daemon-addr=unix:///var/run/netbird.sock status Error: failed to connect to daemon error: context deadline exceeded If the daemon is not running please run: netbird service install netbird service start $ docker compose exec netbird_client ls -laF /var/run/ total 8 drwxr-xr-x 2 root root 4096 Jun 18 15:37 ./ drwxr-xr-x 1 root root 4096 Jul 29 14:48 ../ ubuntu@netbird-gw-dev-dc-01 .../docker-compose/netbird $ **To Reproduce** use "docker compose up -d" and then "docker compose exec netbird_client netbird status" with this docker-compose.yaml: ``` services: netbird_client: image: "netbirdio/netbird:latest" restart: always logging: driver: local labels: logging: "promtail" logging_jobname: "containerlogs" container_name: netbird_client cap_add: - NET_ADMIN - SYS_ADMIN - SYS_RESOURCE environment: - NB_SETUP_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - NB_HOSTNAME=netbird-gw-dev-dc.domain.com - NB_SERVICE=netbird - NB_DAEMON_ADDR=unix:///var/run/netbird.sock - NB_MANAGEMENT_URL=https://mgmt.domain.com:33073 - NB_LOG_LEVEL=debug volumes: - netbird-client:/etc/netbird network_mode: host privileged: true volumes: netbird-client: driver: local ``` **Expected behavior** netbird status should be fetched and printed **Are you using NetBird Cloud?** self-host NetBird's control plane **NetBird version** latest, 0.28.4, 0.27.7
saavagebueno added the triage-needed label 2026-08-05 01:00:36 -04:00
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#4961