Skip to content

[Bug]: Cannot use a relative path as the source path of a bind mount anymore #565

@justinyaodu

Description

@justinyaodu

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Start a container and bind mount a relative path:

container run -it --rm --mount type=bind,src=.,dst=/foo debian:testing bash

Current behavior

I get this error and the container does not start:

Error: invalidArgument: "Invalid volume name '.': must match ^[A-Za-z0-9][A-Za-z0-9_.-]*$"

Expected behavior

The container starts successfully.

Environment

- OS: macOS 15.6.1
- Xcode: 26.0 17A5285i
- Container: 2525d55 (main at the time of writing)

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions