Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to mount apfs case-sensitive volume mount #1253

Open
1 of 5 tasks
Hokwang opened this issue Jan 22, 2025 · 3 comments
Open
1 of 5 tasks

how to mount apfs case-sensitive volume mount #1253

Hokwang opened this issue Jan 22, 2025 · 3 comments

Comments

@Hokwang
Copy link

Hokwang commented Jan 22, 2025

Description

Hi,

I need to case-sensitive volume for compile something on mac m3 chip.

so I create apfs case-sensitive volume using disk utility.

In disk utility, created volume name "dev_vol", format apfs case-sensitive, encripted.

for convinience, ln -s /Volumes/dev_vol ~/work/dev_vol

and then,

cd ~/work/dev_vol
mkdir test
cd test
docker run -it --rm -v ${PWD}:/build --privileged  ubuntu bash
docker: Error response from daemon: error while creating mount source path '/Users/a14638/work/dev_vol': mkdir /Users/a14638/work/dev_vol: file exists.

I don't know what is problem.

I using vz, rosetta option also
because I need to run linux/amd64 docker image.

Version

colima version 0.8.1
git commit: 96598cc

runtime: docker
arch: aarch64
client: v27.5.0
server: v27.4.0
limactl version 1.0.3
qemu-img version 9.2.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/a14638/.colima/default/docker.sock

Reproduction Steps

Expected behaviour

No response

Additional context

No response

@abiosoft
Copy link
Owner

I suspect that the docker container has been started before the volume was mounted on the macOS host.
Docker by default creates an empty directory if the mounted directory does not exist.

@abiosoft
Copy link
Owner

By the way, you do not need to create a custom APFS volume if the primary use case is in the docker container. Linux treats the mounted filesystem case-sensitive even if the it is not case-sensitive on the macOS host.

@66Ton99
Copy link

66Ton99 commented Jan 31, 2025

You need to follow this instruction https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#issue-with-docker-bind-mount-showing-empty

In my case, I use a case-sensitive file system to control myself and avoid problems when my code doesn't work on Linux.

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

No branches or pull requests

3 participants