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
Switching from Apple Virtualization Framework to Docker VMM causes all containers with bind mounts to external USB volumes to fail with the same error:
(HTTP code 400) unexpected - invalid mount config for type "bind": bind source path does not exist: /host_mnt/Externalvolumename/sourcefolder (Docker seems to add /host_mnt to the beginning of the file path when it detects an external volume.)
Bind mounts are added during creation in terminal via --mount type=bind,source=/sourcefolder,target=/targetvolume. These folders exist, are not empty, and function on Apple Virtualization Framework.
Switching back to AVF resolves the issue.
Running/creating a new container connected to the external bind mounts does not resolve the issue.
Issue does not occur on bind mounts made to local storage (e.g. /Users/username/Music would work for a Navidrome container, for instance).
When already using Docker VMM, attempting to create/run a container with a bind mount connected to an external volume results in the same error. The container is then not run/created.
Reproduce
For an existing container:
Ensure Docker is set to use Apple Virtualization Framework (Settings > General > Virtual Machine Options).
Run a container in Docker which uses a bind mount tied to a location on an external USB volume (thumb drive, ext hdd, etc).
Switch to Docker VMM (Settings > General > Virtual Machine Options).
Container will have exited with code 127.
Attempt to start container. Observe HTTP 400 error.
For a new container:
Set VM to Docker VMM
Attempt to run/create a container which uses a bind mount tied to a location on an external USB volume (thumb drive, ext hdd, etc).
Observe HTTP 400 error.
Expected behavior
Bind mounts should connect even when they are to an external USB device. Providing a legitimate path to the volume should not cause Docker VMM to not see the volume just because it isn't the primary MacOS HDD.
Description
M1 Mac Mini, MacOS Sonoma 14.7.1
Docker Desktop 4.35.1 (173168)
Docker Engine 27.3.1
Switching from Apple Virtualization Framework to Docker VMM causes all containers with bind mounts to external USB volumes to fail with the same error:
(HTTP code 400) unexpected - invalid mount config for type "bind": bind source path does not exist: /host_mnt/Externalvolumename/sourcefolder
(Docker seems to add/host_mnt
to the beginning of the file path when it detects an external volume.)--mount type=bind,source=/sourcefolder,target=/targetvolume
. These folders exist, are not empty, and function on Apple Virtualization Framework./Users/username/Music
would work for a Navidrome container, for instance).Reproduce
For an existing container:
For a new container:
Expected behavior
Bind mounts should connect even when they are to an external USB device. Providing a legitimate path to the volume should not cause Docker VMM to not see the volume just because it isn't the primary MacOS HDD.
docker version
Client: Version: 27.3.1 API version: 1.47 Go version: go1.22.7 Git commit: ce12230 Built: Fri Sep 20 11:38:18 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.35.1 (173168) Engine: Version: 27.3.1 API version: 1.47 (minimum version 1.24) Go version: go1.22.7 Git commit: 41ca978 Built: Fri Sep 20 11:41:19 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.21 GitCommit: 472731909fa34bd7bc9c087e4c27943f9835f111 runc: Version: 1.1.13 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
7C248197-12EB-4D2D-85AB-0944ED8732CA/20241110001347
Additional Info
No response
The text was updated successfully, but these errors were encountered: