Open ackerthehacker2 opened 1 year ago
I'm not able to reproduce this:
APFS container with two volumes:
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +94.7 GB disk4
Physical Store disk0s5
1: APFS Volume b 839.7 KB disk4s1
2: APFS Volume a 823.3 KB disk4s2
❯ ls -R /Volumes/a
a
❯ ls -R /Volumes/b
b
compose.yaml
services:
echo:
image: alpine
command: ['sh', '-c', 'ls -R /a && ls -R /b']
volumes:
- /Volumes/a:/a
- /Volumes/b:/b
Running:
❯ docker compose run echo
[+] Running 1/0
✔ Network apfs_default Created 0.0s
/a:
a
/b:
b
A couple suggestions:
Settings > Resources > File Sharing
(e.g. /Volumes/a
& /Volumes/b
)Settings > General > Choose a file sharing implementation
Description
I have a APFS container with two APFS volumes in it. /Volumes/tmp. and /Volumes/qbit
In my docker-compose,
What happens is I don't see the file structure of /Volumes/tmp under /proj but rather /Volumes/qbit contents under /proj (and under /qbit as expected).
Reproduce
touch yyy. in /Volumes/tmp. on the host..
Got to the terminal of the container and do a ls -l /y and of /z/. While they are different volumes, they will have the same contents even though they are different.
Expected behavior
/a has the contents of /Volumes/tmp and /b has the contents of /Volumes/proj
docker version
docker info
Diagnostics ID
60F715FF-298F-4967-9241-D3D4673B6A4F/20230604162219
Additional Info
No response