You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mount of volume-subpath which is available in Docker version 26.0.0, build 2ae903e using Python SDK for docker #3243
I found a docker volume option âvolume-subpathâ in the Docker version 26.0.0. This could be used to mount a sub-directory or a sub-path inside a host docker volume to a container without mounting the entire host volume.
But while using Python SDK for docker, I am not able to use this volume option. Only source and target options were seen for docker volume configuartion using Python.
Is there any way to tackle this issue? I need this feature as part of a project developement. Please provide me some solution to implement this concept using Python.
We are developing in Linux 6.2.0-39-generic Ubuntu 22.04.1 with Python 3.10.12
+1 for adding this feature. Mounting subpaths of volumes is very useful in "docker outside docker" setups where sibling containers need to share data. Work on the PR seems to have stalled since September.
Activity
Khushiyant commentedon Jun 10, 2024
@milas I'll try to work on it, and I'll open a Draft PR for you to see.
mwiebusch78 commentedon Dec 25, 2024
+1 for adding this feature. Mounting subpaths of volumes is very useful in "docker outside docker" setups where sibling containers need to share data. Work on the PR seems to have stalled since September.
Merge pull request #3270 from Khushiyant/volume-subpath
acme-im-bot commentedon Jun 12, 2025
Thanks for merging this! When is this expected to be released as part of a python package publicly?