Skip to content

Conversation

@41ks
Copy link
Contributor

@41ks 41ks commented Dec 11, 2025

Description

This adds support for specifying a directory as the mountPath for a device type.

Use case

This is useful for situations in which the path variable includes a wildcard matching multiple devices which then need to be mounted in a different path in the container. For example:
Host FS:

/dev
    ttyUSB0
    ttyUSB1
    ttyUSB2

This feature would allow us to mount those devices to a different directory such as /dev/serial/:
Container FS:

/dev/serial
    ttyUSB0
    ttyUBS1
    ...

Co-authored-by: Lucas Servén Marín <lserven@gmail.com>
@41ks
Copy link
Contributor Author

41ks commented Dec 11, 2025

Thank you for the review @squat ! I applied your suggestion.

@squat
Copy link
Owner

squat commented Dec 11, 2025

I think this makes sense 👍 We might eventually choose to move this functionality into a separate, explicit field, like mountDirectory or something, to not complicate the logic of the mountPath option with magic.

@squat squat enabled auto-merge December 11, 2025 12:54
@squat squat merged commit b9723c8 into squat:main Dec 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants