NetAlertX icon indicating copy to clipboard operation
NetAlertX copied to clipboard

Bind mounts end up owned by systemd-resolve

Open tomkessler opened this issue 9 months ago β€’ 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing open and closed issues and I checked the docs https://github.com/jokob-sk/NetAlertX/tree/main/docs

Current Behavior

I'm just getting started with NetAlertX. I've used the basic docker compose from the docs. Strangely, the bind mounted folders are getting owned by "systemd-resolve" (UID=101 on my Ubuntu 20.04 system) when I start the container. That doesn't seem right. When I exec into the container, it seems to be running as root (UID=0).

image

Expected Behavior

I'd expect the folders to be owned by root.

Steps To Reproduce

No response

app.conf

No response

docker-compose.yml

version: "3"
services:
  netalertx:
    container_name: netalertx
    image: jokobsk/netalertx:latest
    environment:
      - TZ=${TZ}
    restart: unless-stopped
    volumes:
      - ./netalertx/db:/app/db
      - ./netalertx/config:/app/config
      - ./netalertx/etc/resolv.conf:/etc/resolv.conf
      # (optional) useful for debugging if you have issues setting up the container
      - ./netalertx/logs:/app/front/log
    network_mode: host

What branch are you running?

Production

app.log

No response

Debug enabled

  • [X] I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.

tomkessler avatar Apr 28 '24 20:04 tomkessler

Those files are owned by nginx:www-data inside the container, as web server is nginx. id of that user is 101 and group id is 82.

vladaurosh avatar Apr 28 '24 21:04 vladaurosh

probably duplicate: #652

jokob-sk avatar Apr 30 '24 11:04 jokob-sk

closing as duplicate

jokob-sk avatar May 05 '24 08:05 jokob-sk