Skip to content

Conversation

@mokibit
Copy link
Collaborator

@mokibit mokibit commented Jul 24, 2025

The type:bind volume option create_host_path is currently unsupported in podman-compose. This prevents users from disabling the automatic creation of host source directories, creating an incompatibility with docker-compose functionality.
Refer to the relevant docker-compose documentation here:
https://docs.docker.com/reference/compose-file/services/#volumes
This commit implements the create_host_path option to:

  • Achieve better alignment with docker-compose behavior
  • ProvideS control over host directory creation

Fixes #1275

@mokibit mokibit force-pushed the add-volume-bind-create-host-path-option branch from 1a24e53 to fe9d484 Compare July 24, 2025 11:29
@mokibit mokibit force-pushed the add-volume-bind-create-host-path-option branch 6 times, most recently from 2f20bc4 to 8fe0bcd Compare July 25, 2025 08:49
mokibit added 2 commits July 25, 2025 13:29
The `type:bind` volume option `create_host_path` is currently unsupported in `podman-compose`. This prevents users from disabling the automatic creation of host source directories, creating an incompatibility with `docker-compose` functionality.

Refer to the relevant `docker-compose` documentation:
https://docs.docker.com/reference/compose-file/services/#volumes

This commit implements the `create_host_path` option to:
- Achieve better alignment with `docker-compose` behavior
- Provide control over host directory creation

Signed-off-by: Monika Kairaityte <[email protected]>
@mokibit mokibit force-pushed the add-volume-bind-create-host-path-option branch from 9a30d52 to 4f9b419 Compare July 25, 2025 10:29
@p12tic p12tic merged commit f618ff3 into containers:main Jul 25, 2025
8 checks passed
@mokibit mokibit deleted the add-volume-bind-create-host-path-option branch July 25, 2025 19:29
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.

Implement bind.create_host_path: false volume option

2 participants