Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-3042

[containers/podman] Overlay volume mounts don't work on Windows WSL

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • rhel-container-tools

      [3020633403] Upstream Reporter: Mario Loriedo
      Upstream issue status: Closed
      Upstream description:

      Issue Description

      When using the option :O to mount a host directory using the overlay file system, the podman client doesn't transform the Windows path into the machine path, and the run fails:

      Unable to find source-code formatter for language: pwsh. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      > podman run -ti --rm -v "C:Usersmariogitpodman:/podman:O" fedora bash
      Error: preparing container cc3206c241eb8582fc9339e22140b9f44a9064d736a119c738fbf377b19a500b for attach: mounting overlay failed "C:Usersmariogitpodman": stat C:Usersmariogitpodman: no such file or directory
      

      Steps to reproduce the issue

      Steps to reproduce the issue

      1. From a a PowerShell terminal run podman run -ti --rm -v "${PWD}:/host-folder:O" fedora bash

      Podman version

      PS C:> podman info
      Client:
        APIVersion: 5.5.0-dev
        Built: 1745494867
        BuiltTime: Thu Apr 24 13:41:07 2025
        GitCommit: bc814707141ffaf965afac332c65f246c5329fb1
        GoVersion: go1.24.2
        Os: windows
        OsArch: windows/arm64
        Version: 5.5.0-dev
      host:
        arch: arm64
        buildahVersion: 1.39.4
        cgroupControllers: []
        cgroupManager: cgroupfs
        cgroupVersion: v1
        conmon:
          package: conmon-2.1.13-1.fc41.aarch64
          path: /usr/bin/conmon
          version: 'conmon version 2.1.13, commit: '
        cpuUtilization:
          idlePercent: 99.23
          systemPercent: 0.43
          userPercent: 0.35
        cpus: 12
        databaseBackend: sqlite
        distribution:
          distribution: fedora
          variant: container
          version: "41"
        eventLogger: journald
        freeLocks: 2048
        hostname: rascarcapac
        idMappings:
          gidmap:
          - container_id: 0
            host_id: 1000
            size: 1
          - container_id: 1
            host_id: 524288
            size: 65536
          uidmap:
          - container_id: 0
            host_id: 1000
            size: 1
          - container_id: 1
            host_id: 524288
            size: 65536
        kernel: 5.15.167.4-microsoft-standard-WSL2
        linkmode: dynamic
        logDriver: journald
        memFree: 15946121216
        memTotal: 16622104576
        networkBackend: netavark
        networkBackendInfo:
          backend: netavark
          dns:
            package: aardvark-dns-1.14.0-1.fc41.aarch64
            path: /usr/libexec/podman/aardvark-dns
            version: aardvark-dns 1.14.0
          package: netavark-1.14.1-1.fc41.aarch64
          path: /usr/libexec/podman/netavark
          version: netavark 1.14.1
        ociRuntime:
          name: crun
          package: crun-1.21-1.fc41.aarch64
          path: /usr/bin/crun
          version: |-
            crun version 1.21
            commit: 10269840aa07fb7e6b7e1acff6198692d8ff5c88
            rundir: /run/user/1000/crun
            spec: 1.0.0
            +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
        os: linux
        pasta:
          executable: /usr/bin/pasta
          package: passt-0^20250415.g2340bbf-1.fc41.aarch64
          version: ""
        remoteSocket:
          exists: true
          path: unix:///run/user/1000/podman/podman.sock
        rootlessNetworkCmd: pasta
        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: true
        slirp4netns:
          executable: ""
          package: ""
          version: ""
        swapFree: 4294967296
        swapTotal: 4294967296
        uptime: 4h 31m 58.00s (Approximately 0.17 days)
        variant: v8
      plugins:
        authorization: null
        log:
        - k8s-file
        - none
        - passthrough
        - journald
        network:
        - bridge
        - macvlan
        - ipvlan
        volume:
        - local
      registries:
        search:
        - docker.io
      store:
        configFile: /home/user/.config/containers/storage.conf
        containerStore:
          number: 0
          paused: 0
          running: 0
          stopped: 0
        graphDriverName: overlay
        graphOptions: {}
        graphRoot: /home/user/.local/share/containers/storage
        graphRootAllocated: 1081101176832
        graphRootUsed: 2794958848
        graphStatus:
          Backing Filesystem: extfs
          Native Overlay Diff: "true"
          Supports d_type: "true"
          Supports shifting: "false"
          Supports volatile: "true"
          Using metacopy: "false"
        imageCopyTmpDir: /var/tmp
        imageStore:
          number: 35
        runRoot: /run/user/1000/containers
        transientStore: false
        volumePath: /home/user/.local/share/containers/storage/volumes
      version:
        APIVersion: 5.4.2
        BuildOrigin: Fedora Project
        Built: 1743552000
        BuiltTime: Wed Apr  2 02:00:00 2025
        GitCommit: be85287fcf4590961614ee37be65eeb315e5d9ff
        GoVersion: go1.23.7
        Os: linux
        OsArch: linux/arm64
        Version: 5.4.2

      Upstream URL: https://github.com/containers/podman/issues/25988

              mloriedo Mario Loriedo
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: