linuxserver / docker-wireshark

GNU General Public License v3.0
101 stars 10 forks source link

[BUG] Black screen running via Docker CLI in host mode #20

Open IvanRibakov opened 1 month ago

IvanRibakov commented 1 month ago

Is there an existing issue for this?

Current Behavior

When running via Docker CLI and connecting to the host network (--net=host), I get black screen when connecting to the container via browser.

image

Container logs seem to include a continuous stream of 1 repeating message:

Openbox-Message: A window manager is already running on screen 0

This does NOT happen when switching to a bridge network.

Expected Behavior

Being able to view Wireshark UI in browser

Steps To Reproduce

  1. In PopOS/Ubuntu 22.04
  2. With default config (see Docker command for more details)
  3. When running (see Docker command for more details)
  4. I see black screen when connecting to http://localhost:3000 (see logs for more details)

Environment

- OS: Pop!_OS 22.04 LTS
- How docker service was installed: Convenience script, then updated using package manager

CPU architecture

x86-64

Docker creation

docker run  \
   --rm \
   --name=wireshark \
   --net=host \
   --cap-add=NET_ADMIN \
   --security-opt seccomp=unconfined \
   -p 3000:3000 \
   -p 3001:3001 \
   -e PUID=1000 \
   -e PGID=1000 \
   -e TZ=Etc/UTC \
   -v /data/_tostudy/wireshark_docker:/config \
   --privileged \
   lscr.io/linuxserver/wireshark:latest

### Container logs

```bash
WARNING: Published ports are discarded when using host network mode
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
**** creating video group videohy77 with id 44 ****
**** adding /dev/dri/card1 to video group videohy77 with id 44 ****
**** creating video group videogzvf with id 109 ****
**** adding /dev/dri/renderD128 to video group videogzvf with id 109 ****
[custom-init] No custom files found, skipping...
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built Jul 13 2024 18:55:13
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

[ls.io-init] done.
Openbox-Message: A window manager is already running on screen 0
19
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
 2024-07-17 11:07:05,256 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-07-17 11:07:05,264 [PRIO] Connections: accepted: @::1_1721214425.256485::websocket
time="2024-07-17T11:07:05.291597064Z" level=error msg="failed to mount overlay: invalid argument" storage-driver=overlay2
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
Openbox-Message: A window manager is already running on screen 0
...
github-actions[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

josephglass1029 commented 1 month ago

I am also having this same issue. When I run it on a bridge network, everything works fine. However, I need to run this on the host network. **services: wireshark: container_name: wireshark image: lscr.io/linuxserver/wireshark:latest privileged: yes cap_add:

LinuxServer-CI commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

IvanRibakov commented 2 weeks ago

Keep alive