Skip to content

Conversation

@ttys3
Copy link

@ttys3 ttys3 commented Dec 4, 2025

  • Convert relative paths (e.g., ./data/postgres) to normalized absolute paths
  • Use URL.standardizedFileURL to remove ./ and ../ components
  • Pass absolute paths to container run -v command instead of relative paths
  • Fixes issue where container tool incorrectly treats relative paths as named volume names

The container tool requires absolute paths for bind mounts. Previously, relative paths like './data/postgres' were passed directly, causing the tool to validate them as named volume names (which must match ^[A-Za-z0-9][A-Za-z0-9_.-]*$), resulting in validation errors.

fix #4

- Convert relative paths (e.g., ./data/postgres) to normalized absolute paths
- Use URL.standardizedFileURL to remove ./ and ../ components
- Pass absolute paths to container run -v command instead of relative paths
- Fixes issue where container tool incorrectly treats relative paths as named volume names

The container tool requires absolute paths for bind mounts. Previously, relative
paths like './data/postgres' were passed directly, causing the tool to validate
them as named volume names (which must match ^[A-Za-z0-9][A-Za-z0-9_.-]*$),
resulting in validation errors.
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.

Support Relative Bind Mounts

1 participant