Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman delete XDG_RUNTIME_DIR from disk #25357

Closed
PaleNeutron opened this issue Feb 19, 2025 · 0 comments
Closed

Podman delete XDG_RUNTIME_DIR from disk #25357

PaleNeutron opened this issue Feb 19, 2025 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@PaleNeutron
Copy link

Issue Description

Podman delete XDG_RUNTIME_DIR folder at first run

Steps to reproduce the issue

Steps to reproduce the issue

john@machine:/home/john $ ls -al $XDG_RUNTIME_DIR
total 0
drwx------ 2 john john 40 Feb 19 10:09 .
drwxr-xr-x 3 root root 60 Feb 19 10:08 ..
john@machine:/home/john $ echo $XDG_RUNTIME_DIR
/run/user/1000/
john@machine:/home/john $ podman run hello-world
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
ERRO[0002] Refreshing container 3d656c3844fb9867c455b79e554a3071a05368ff8fbbc5b521abcd76f5ea9b36: acquiring lock 0 for container 3d656c3844fb9867c455b79e554a3071a05368ff8fbbc5b521abcd76f5ea9b36: file exists
ERRO[0003] Refreshing container 95cf9d0ad24ff75c9703c371b6e7c58828f221444ca229de3957d18bc625a73b: acquiring lock 0 for container 95cf9d0ad24ff75c9703c371b6e7c58828f221444ca229de3957d18bc625a73b: file exists
ERRO[0003] Refreshing volume f5ea39e608f41b2473ce9691cfa726f62d30826f278a82d7b3555e94ef4605bd: acquiring lock 1 for volume f5ea39e608f41b2473ce9691cfa726f62d30826f278a82d7b3555e94ef4605bd: file exists

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

john@machine:/home/john $ echo $XDG_RUNTIME_DIR
/run/user/1000/
john@machine:/home/john $ ls -al $XDG_RUNTIME_DIR
ls: cannot access '/run/user/1000/': No such file or directory

Describe the results you received

XDG_RUNTIME_DIR is deleted

Describe the results you expected

Describe the results you expected

podman info output

WARN[0000] Failed to get rootless runtime dir for DefaultAPIAddress: lstat /run/user/1000: no such file or directory
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
WARN[0000] Failed to get rootless runtime dir for DefaultAPIAddress: lstat /run/user/1000: no such file or directory
host:
  arch: amd64
  buildahVersion: 1.33.7
  cgroupControllers: []
  cgroupManager: cgroupfs
  cgroupVersion: v1
  conmon:
    package: conmon_2.1.10+ds1-1build2_amd64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.10, commit: unknown'
  cpuUtilization:
    idlePercent: 99.78
    systemPercent: 0.1
    userPercent: 0.12
  cpus: 16
  databaseBackend: boltdb
  distribution:
    codename: noble
    distribution: ubuntu
    version: "24.04"
  eventLogger: file
  freeLocks: 2048
  hostname: 049171BG01
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 5.15.167.4-microsoft-standard-WSL2
  linkmode: dynamic
  logDriver: journald
  memFree: 11283013632
  memTotal: 12545507328
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns_1.6.0-0ubuntu22.04+obs34.25_amd64
      path: /usr/libexec/podman/aardvark-dns
      version: aardvark-dns 1.6.0
    package: netavark_1.4.0-4_amd64
    path: /usr/lib/podman/netavark
    version: netavark 1.4.0
  ociRuntime:
    name: crun
    package: crun_101:1.14.4-0ubuntu22.04+obs70.22_amd64
    path: /usr/bin/crun
    version: |-
      crun version 1.14.4
      commit: a220ca661ce078f2c37b38c92e66cf66c012d9c1
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt_0.0~git20240220.1e6f92b-1_amd64
    version: |
      pasta unknown version
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: false
    path: /run/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns_1.2.3-0ubuntu22.04+obs13.26_amd64
    version: |-
      slirp4netns version 1.2.3
      commit: c22fde291bb35b354e6ca44d13be181c76a0a432
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 3
      libseccomp: 2.5.5
  swapFree: 17179869184
  swapTotal: 17179869184
  uptime: 0h 5m 27.00s
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  amdockerhub.citicsinfo.com:
    Blocked: false
    Insecure: true
    Location: amdockerhub.citicsinfo.com
    MirrorByDigestOnly: false
    Mirrors: null
    Prefix: amdockerhub.citicsinfo.com
    PullFromMirror: ""
  docker.io:
    Blocked: false
    Insecure: false
    Location: registry-1.docker.io
    MirrorByDigestOnly: false
    Mirrors:
    - Insecure: false
      Location: mirror.gcr.io
      PullFromMirror: ""
    Prefix: docker.io
    PullFromMirror: ""
  dockerhub.citicsinfo.com:
    Blocked: false
    Insecure: true
    Location: dockerhub.citicsinfo.com
    MirrorByDigestOnly: false
    Mirrors: null
    Prefix: dockerhub.citicsinfo.com
    PullFromMirror: ""
  search:
  - docker.io
store:
  configFile: /home/john/.config/containers/storage.conf
  containerStore:
    number: 13
    paused: 0
    running: 0
    stopped: 13
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/john/.local/share/containers/storage
  graphRootAllocated: 269427478528
  graphRootUsed: 237049630720
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Supports shifting: "true"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 151
  runRoot: /tmp/podman-run-1000/containers
  transientStore: false
  volumePath: /home/john/.local/share/containers/storage/volumes
version:
  APIVersion: 4.9.3
  Built: 0
  BuiltTime: Thu Jan  1 08:00:00 1970
  GitCommit: ""
  GoVersion: go1.22.2
  Os: linux
  OsArch: linux/amd64
  Version: 4.9.3

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Use podman in WSL2

Additional information

No response

@PaleNeutron PaleNeutron added the kind/bug Categorizes issue or PR as related to a bug. label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant