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-compose mount volume incorrectly under Windows with podman machine on WSL #22684

Open
ohhappy1986 opened this issue May 13, 2024 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. machine windows issue/bug on Windows

Comments

@ohhappy1986
Copy link

ohhappy1986 commented May 13, 2024

Issue Description

When using podman-compose to bring up below container. The volume mapping is incorrectly mapped, it automatically adds "/mnt/d" before each of the volume entry in compose file.

podman-compose v1.1.0

Compose file below:

services:
ibml:
image: /nvidia/cuda
container_name: ibml_engine
build:
context: .\IBML
args:
APP_VERSION: latest
volumes:
- /mnt/e/Data:/mnt/e/Data
- /mnt/d/Logs:/mnt/d/Logs
networks:
candela-net:
ipv4_address: 172.168.0.11
dns:
- "8.8.8.8"
devices:
- nvidia.com/gpu=all
security_opt:
- "label=disable"

If you inspect the container which it brought up. You can see volumes are mount as below
/mnt/d/mnt/e/Data:/mnt/e/Data /mnt/d/mnt/d/Logs:/mnt/d/Logs

Steps to reproduce the issue

Steps to reproduce the issue

  1. Save the posted compose file into compose.yaml file
  2. Run podman-compose -f compose.yaml up -d
  3. Inspect the container using Podman desktop or command line

Describe the results you received

The volume mounted as
/mnt/d/mnt/e/Data:/mnt/e/Data /mnt/d/mnt/d/Logs:/mnt/d/Logs

Describe the results you expected

Then volume should be mounted as
/mnt/e/Data:/mnt/e/Data /mnt/d/Logs:/mnt/d/Logs

podman info output

OS: windows/amd64
provider: wsl
version: 5.0.2

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@ohhappy1986 ohhappy1986 added the kind/bug Categorizes issue or PR as related to a bug. label May 13, 2024
@Luap99 Luap99 added windows issue/bug on Windows machine labels May 13, 2024
@mheon
Copy link
Member

mheon commented May 14, 2024

Can you try without Podman Compose, just with a podman run command with the same volume? I suspect the result will be the same but confirmation would be nice.

@ohhappy1986
Copy link
Author

ohhappy1986 commented May 14, 2024

podman run works, issues only exists in podman-compose @mheon

@mheon
Copy link
Member

mheon commented May 14, 2024

You may want to reopen against the podman-compose repo then, we only support Podman itself here

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. machine windows issue/bug on Windows
Projects
None yet
Development

No branches or pull requests

3 participants