I have set up the container on an Intel Mac (macOS Ventura 13.2), and I am able to share a folder (public) to other macs on the network. However, while a client (macOS 13.2 or macOS 10.15) can mount and write to files, they cannot move or rename files (in Finder or from terminal) and when copying files from Finder, an error is generated resulting in a zero bytes file of the correct name (which can subsequently be opened and written to).
If I have the shared folder within the docker container itself, then the share works as expected and I can rename/move/delete files as expected.
Is this container expected to work when running on a macOS host?
Steps to reproduce this issue
start Docker container on server
mount share public on client mac
go to /Volumes/public in terminal on client mac
touch test.txt; mv test.txt test2.txt
Expected behaviour
File test2.txt should be created in public share.
Actual behaviour
File test.txt is created and error given:
mv: rename test.txt to test2.txt: Operation not supported
Configuration
Docker version (type docker --version) : Docker version 20.10.22, build 3a2c30b
Docker compose version if applicable (type docker-compose --version) : Docker Compose version v2.15.1
No. In the end I installed SMB directly via Homebrew which has worked great, and much more reliable than native macOS file sharing had ever been for me.
Behaviour
I have set up the container on an Intel Mac (macOS Ventura 13.2), and I am able to share a folder (public) to other macs on the network. However, while a client (macOS 13.2 or macOS 10.15) can mount and write to files, they cannot move or rename files (in Finder or from terminal) and when copying files from Finder, an error is generated resulting in a zero bytes file of the correct name (which can subsequently be opened and written to).
If I have the shared folder within the docker container itself, then the share works as expected and I can rename/move/delete files as expected.
Is this container expected to work when running on a macOS host?
Steps to reproduce this issue
public
on client mac/Volumes/public
in terminal on client mactouch test.txt; mv test.txt test2.txt
Expected behaviour
File
test2.txt
should be created in public share.Actual behaviour
File
test.txt
is created and error given:mv: rename test.txt to test2.txt: Operation not supported
Configuration
docker --version
) : Docker version 20.10.22, build 3a2c30bdocker-compose --version
) : Docker Compose version v2.15.1uname -a
) : Darwin 22.3.0 Darwin Kernel Version 22.3.0: Thu Jan 5 20:53:49 PST 2023; root:xnu-8792.81.2~2/RELEASE_X86_64 x86_64docker-compose.yml
,.env
, ...docker-compose.yml:
config.yml:
mark
uid 501.Docker info