Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
How do I get Access Point information from a Docker container in bridged network mode?

I'm trying to collect data on the access point from a Docker container.

Normally I'd just run

$ iw dev wlp0s20f3 link
Connected to 8e:5a:25:a6:7f:81 (on wlp0s20f3)
        SSID: My Wifi
        freq: 2462
        RX: 2481914864 bytes (3224435 packets)
        TX: 1036520417 bytes (1800629 packets)
        signal: -54 dBm
        rx bitrate: 144.4 MBit/s MCS 15 short GI
        tx bitrate: 144.4 MBit/s MCS 15 short GI

        bss flags:      short-slot-time
        dtim period:    3
        beacon int:     100

parse that text and be done with it. However, my container must be run in bridge mode, so I don't have access to the underlying device information.

I can mount read-only volumes /sys/class/net, but it doesn't seem to get me all the information I need. I can mount /proc/net/wireless, but the interface information I care about doesn't show up.

How might I access live data from a docker container in bridge mode? Specifically I'm looking for this information:

  • Current SSID
  • Access Point BSSID
  • Access Point link signal strength
  • Total data received
  • Total data transmitted
  • Receive bitrate
  • Transmit bitrate
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try nsenter, it will execute command on the host if container was started in privileged mode

/bin/bash

arg=${@}

nsenter --target 1 --mount --uts --net --ipc ${arg}
./host_cmd ip link
./host_cmd: line 1: !/bin/bash: No such file or directory
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: tap0: <BROADCAST,UP,LOWER_UP> mtu 65520 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 2e:8d:3c:fc:d9:20 brd ff:ff:ff:ff:ff:ff
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!