Distrobox not working correctly

Trying to run a distro, I get Error response from daemon: path /sys is mounted on /sys but it is not a shared or slave mount

To Reproduce

  • sudo pacman -S distrobox
  • (Maybe have docker and docker desktop installed)
  • distrobox create -i ubuntu:23.04 --name ubuntu.
  • distrobox enter ubuntu- This returned error
    Error response from daemon: Mounts denied: The path /tmp is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. See https://docs.docker.com/ for more info. Error: failed to start containers: ubuntu
  • Add /tmp to file sharing resources via docker desktop
  • running it again, error:Error response from daemon: path /sys is mounted on /sys but it is not a shared or slave mount Error: failed to start containers: ubuntu

after that I tried adding /sys via docker desktop and doing sudo mount --make-shared /sys (based on this gh issue ) but neither helped

Expected behavior
it enters

Logs

+ '[' -z ubuntu ']'
+ '[' '!' -t 0 ']'
+ '[' '!' -t 1 ']'
+ case "${container_manager}" in
+ command -v podman
+ command -v podman-launcher
+ command -v docker
+ container_manager=docker
+ command -v docker
+ '[' 1 -ne 0 ']'
+ container_manager='docker --log-level debug'
+ '[' 0 -ne 0 ']'
+ container_home=/home/djkato
+ container_path=/home/djkato/.local/bin:/home/djkato/.bun/bin:/home/djkato/.local/share/bob/nvim-bin:/home/djkato/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin
+ '[' 0 -ne 0 ']'
+ container_status=unknown
++ docker --log-level debug inspect --type container --format 'container_status={{.State.Status}};
{{range .Config.Env}}{{if slice . 0 5 | eq "HOME="}}container_home={{slice . 5 | printf "%q"}};{{end}}{{end}}
{{range .Config.Env}}{{if slice . 0 5 | eq "PATH="}}container_path={{slice . 5 | printf "%q"}}{{end}}{{end}}' ubuntu
+ eval 'container_status=created;
container_home="/home/djkato";
container_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"'
++ container_status=created
++ container_home=/home/djkato
++ container_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ '[' created = unknown ']'
+ '[' created '!=' running ']'
+ docker --log-level debug start ubuntu
Error response from daemon: path /sys is mounted on /sys but it is not a shared or slave mount
Error: failed to start containers: ubuntu
+ cleanup
+ rm -f /home/djkato/.cache/.ubuntu.fifo
+ '[' -n '' ']'
+ '[' 1 -eq 1 ']'
+ docker --log-level debug logs ubuntu

No docker logs present, docker only throws (HTTP code 500) server error - Cannot restart container 1ba1c8eee52abb92f1ecd25690e6517ecf6ccf4f394cd7c7d53bee78e398be52: path /sys is mounted on /sys but it is not a shared or slave mount

docker desktop: 4.26.1, engine: 24.0.7

inxi:

System:
  Kernel: 6.7.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=b8196f39-e08b-4bce-b75d-343098561547 rw rootflags=subvol=@
    quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=UUID=9bac1011-b1fa-4c26-85c0-a8dacd8e1df1 loglevel=3
    clearcpuid=304 ibt=off
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 info: frameworks
    v: 5.115.0 wm: kwin_x11 with: Docker vt: 2 dm: SDDM Distro: Garuda
    base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME B650-PLUS v: Rev 1.xx
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    UEFI: American Megatrends v: 1636 date: 07/28/2023
CPU:
  Info: model: AMD Ryzen 7 7700X bits: 64 type: MT MCP arch: Zen 4 gen: 5
    level: v3 note: check built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25)
    model-id: 0x61 (97) stepping: 2 microcode: 0xA601203
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB desc: 8x1024 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3684 high: 5396 min/max: 400/5573 scaling:
    driver: amd-pstate-epp governor: performance cores: 1: 5349 2: 5351 3: 5346
    4: 400 5: 400 6: 5350 7: 5346 8: 400 9: 5318 10: 4484 11: 4818 12: 400
    13: 4844 14: 5347 15: 5396 16: 400 bogomips: 143985
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
    driver: amdgpu v: kernel arch: RDNA-1 code: Navi-1x process: TSMC n7 (7nm)
    built: 2019-20 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports:
    active: DP-1,HDMI-A-1 empty: DP-2,DP-3 bus-ID: 03:00.0 chip-ID: 1002:731f
    class-ID: 0300
  Device-2: AMD Raphael vendor: ASUSTeK driver: amdgpu v: kernel
    arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie:
    gen: 4 speed: 16 GT/s lanes: 16 ports: active: none empty: DP-4,HDMI-A-2
    bus-ID: 0e:00.0 chip-ID: 1002:164e class-ID: 0300 temp: 49.0 C
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
    s-diag: 1245mm (49.01")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,top-left
    model: AOC Q3279WG5B serial: <filter> built: 2017 res: 2560x1440 dpi: 90
    gamma: 1.2 size: 725x428mm (28.54x16.85") diag: 842mm (33.1") ratio: 15:9
    modes: max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: bottom-r model: BenQ GW2470
    serial: <filter> built: 2016 res: 1920x1080 hz: 60 dpi: 93 gamma: 1.2
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: radeonsi device: 2 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: radeonsi x11: drv: radeonsi inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.1-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 5700 XT (radeonsi
    navi10 LLVM 16.0.6 DRM 3.57 6.7.4-zen1-1-zen) device-ID: 1002:731f
    memory: 7.81 GiB unified: no
  API: Vulkan v: 1.3.276 layers: 9 device: 0 type: discrete-gpu
    name: AMD Radeon RX 5700 XT driver: amd v: (AMD proprietary shader compiler)
    device-ID: 1002:731f surfaces: xcb,xlib device: 1 type: discrete-gpu
    name: AMD Radeon RX 5700 XT (RADV NAVI10) driver: mesa radv
    v: 24.0.1-arch1.1 device-ID: 1002:731f surfaces: xcb,xlib device: 2
    type: integrated-gpu name: AMD Radeon Graphics driver: amd v: (AMD
    proprietary shader compiler) device-ID: 1002:164e surfaces: xcb,xlib
    device: 3 type: integrated-gpu name: AMD Radeon Graphics (RADV
    RAPHAEL_MENDOCINO) driver: mesa radv v: 24.0.1-arch1.1
    device-ID: 1002:164e surfaces: xcb,xlib device: 4 type: cpu name: llvmpipe
    (LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 24.0.1-arch1.1 (LLVM
    16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab38
    class-ID: 0403
  Device-2: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0e:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0e:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Device-4: USB MIDI Interface driver: snd-usb-audio type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:2 chip-ID: fc02:0101
    class-ID: 0103
  Device-5: Native Instruments Komplete Audio 2 driver: snd-usb-audio
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-1:2
    chip-ID: 17cc:1840 class-ID: fe01 serial: <filter>
  Device-6: PreSonus Audio Studio 1824c driver: snd-usb-audio type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 7-1:13
    chip-ID: 194f:010d class-ID: fe01 serial: <filter>
  API: ALSA v: k6.7.4-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 0a:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager, smbd, sshd, systemd-timesyncd
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) driver: btusb
    v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-6:3
    chip-ID: 0a12:0001 class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.0
    lmp-v: 6 status: discoverable: no pairing: no class-ID: 6c0104
Drives:
  Local Storage: total: 1.82 TiB used: 1.55 TiB (85.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT2000P5PSSD8
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: P7CR403 temp: 49.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 1.79 TiB size: 1.79 TiB (100.00%) used: 1.55 TiB (87.0%)
    fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
    used: 1.55 TiB (87.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
    used: 1.55 TiB (87.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 1.79 TiB size: 1.79 TiB (100.00%)
    used: 1.55 TiB (87.0%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 30.5 GiB used: 294 MiB (0.9%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 33.55 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 60.1 C mobo: N/A
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: 48.0 C device: amdgpu temp: 49.0 C mem: 62.0 C
    fan: 0 watts: 47.00
Info:
  Memory: total: 32 GiB note: est. available: 30.5 GiB used: 14.85 GiB (48.7%)
  Processes: 506 Power: uptime: 2h 20m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.18 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 255 default: graphical tool: systemctl
  Packages: 1938 pm: dpkg pkgs: 1 pm: pacman pkgs: 1925 libs: 501
    tools: octopi,paru,yay pm: pkg pkgs: 0 pm: flatpak pkgs: 12 Compilers:
    clang: 16.0.6 gcc: 13.2.1 Shell: garuda-inxi default: Bash v: 5.2.26
    running-in: konsole inxi: 3.3.33
Garuda (2.6.23-1):
  System install date:     2023-08-17
  Last full system update: 2024-02-20 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            sesinetd.service 
1 Like

Can you provide your

garuda-inxi

As per the forum template

4 Likes

added, forgot sry

This means that a reboot is pending after the latest update.
Please do so, you never can say…

1 Like

Did, no change :confused: wish it was that easy

This seems to be a problem from distrobox’s side. Downgrade to 1.6.0.1-1 and add it to ignore package’s for now.

sudo downgrade distrobox
3 Likes

I think this helped in combination of installing podman. I installed my app now successfully but I cannot get a gui app to run. Trying to run it gives me:

./studioone
### Warning: Failed to connect to Wayland display.

I think I am using x11(Garuda dragonized)

echo $XDG_SESSION_TYPE
x11

So why is it trying to run wayland? (I think they’re different display services)

I am not aware of studioone but maybe it has a dependency on wayland? In that case,

sudo pacman -S plasma-wayland-session

then while re-booting up from the sddm screen just below the password field you will notice a drop down menu. Click on that and select wayland and try launching your program.

If you have issues with it you can just as easily choose x11 from the same menu back again.

4 Likes

Guess that’s a good enough reason to switch away from x11. Thanks for your help, it finally runs :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.