Skip to content

[Help]How to make a container that requires gid and uid to work normally #448

@greenhandzdl

Description

@greenhandzdl

system information:

~ $ neofetch
         -o          o-            u0_a533@localhost
          +hydNNNNdyh+             -----------------
        +mMMMMMMMMMMMMm+           OS: Android 16 aarch64
      `dMMm:NMMMMMMN:mMMd`         Host: OnePlus PJX110
      hMMMMMMMMMMMMMMMMMMh         Kernel: 6.1.148-gc209d7422c61-dirty
  ..  yyyyyyyyyyyyyyyyyyyy  ..     Uptime: 3 hours, 56 mins
.mMMm`MMMMMMMMMMMMMMMMMMMM`mMMm.   Packages: 120 (dpkg), 1 (pkg)
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   Shell: bash 5.3.3
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   CPU: (8) @ 2.265GHz
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:   Memory: 10390MiB / 23158MiB
:MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM:
-MMMM-MMMMMMMMMMMMMMMMMMMM-MMMM-
 +yy+ MMMMMMMMMMMMMMMMMMMM +yy+
      mMMMMMMMMMMMMMMMMMMm
      `/++MMMMh++hMMMM++/`
          MMMMo  oMMMM
          MMMMo  oMMMM
          oNMm-  -mMNs

Reproduce:

udocker run \
-e NAPCAT_GID=$(id -g) \
-e NAPCAT_UID=$(id -u) \
-p 3000:3000 \
-p 3001:3001 \
-p 6099:6099 \
mlikiowa/napcat-docker:latest
  • udocker cannot works.
Cannot open audit interface - aborting.
Cannot open audit interface - aborting.
Cannot open audit interface - aborting.
error: failed switching to "napcat": operation not permitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions