homebrew-docker-virtualbox
homebrew-docker-virtualbox copied to clipboard
docker-compose fails with mkdir <dir>: file exists
I have the package working well for simple docker commands, but fail to get docker-compose executing. Here is the log.
> docker-compose -f docker-compose.yml run abc-def python manage.py shell_plus
Starting abc-def_database_1 ... error
Starting abc-def_post-watch-database_1 ...
Starting abc-def_elasticsearch6_1 ...
Starting abc-def_redis_1 ...
Starting abc-def_post-watch-database_1 ... done
Starting abc-def_elasticsearch6_1 ... error
tabase/data': mkdir /Users/postm/Documents: file exists
Starting abc-def_post-pelican_1 ...
Starting abc-def_redis_1 ... done
Starting abc-def_post-pelican_1 ... done
ERROR: for database Cannot start service database: error while creating mount source path '/Users/postm/Documents/GitHub/abc-def/docker/database/data': mkdir /Users/postm/Documents: file exists
ERROR: for elasticsearch6 Cannot start service elasticsearch6: error while creating mount source path '/Users/postm/Documents/GitHub/abc-def/docker/elasticsearch/data': mkdir /Users/postm/Documents: file exists
ERROR: Encountered errors while bringing up the project.
I have followed all the instructions and think everything is set up correctly, unsure if this is a bug or a known limitation.
hi @juanjgarcia, please provide the example compose config
This happens when you try to mount something under your macos ~/ folder it seems, cause /var/... works normally. I'm not sure how to fix it, or how to mount a local folder yet, but hope this adds some information to it.
Did you already solve this problem? I currently facing the same issue right now
Did you already solve this problem? I currently facing the same issue right now
I actually dont use hackintosh anymore cause I got a macbook. However something I discovered is that it has to do with permissions, and the fact that the docker uses vmbox. I tried the same on my macbook and it didnt happen, i tried on two different laptops. I never did something to fix it, i just mounted /var/ honestly.