DEV Community

Cover image for Persistent multi-user Docker on macOS

Persistent multi-user Docker on macOS

Thomas Strömberg on February 01, 2021

First, be aware that docker is not designed to be securely shared among multiple users. Please assume that anyone who has access to docker is effec...
Collapse
 
udance4ever profile image
udance4ever • Edited

thank you for these instructions. Have permissions changed in macOS Sonoma (14.6.1)?

I get an error while trying to move the Container directory:
docker@Embrace Containers % mv ~/Library/Containers/com.docker.docker /Users/Shared/Library/Containers
mv: rename /Users/docker/Library/Containers/com.docker.docker to /Users/Shared/Library/Containers/com.docker.docker: Operation not permitted

I had no problems moving all files in the directory manually but then I get stuck on the last step moving the offending directory out of the way to create a symlink even as root!
root@Embrace:/Users/docker/Library/Containers# mv com.docker.docker/ foo
mv: rename com.docker.docker/ to foo: Operation not permitted

Collapse
 
zomars profile image
Omar López

Thanks for this guide! I have a question, does this work when running docker-compose? I'm getting writing errors

Collapse
 
tstromberg profile image
Thomas Strömberg

I don't see why it shouldn't work - what errors are you seeing? I could have easily missed a step.