Hey all,
I created a docker container on mac, with docker 1.12. It’s a rails app and I’d like to expose the logs
directory to the host. It’s done via docker-compose like so:
web:
image: dmarkush/test
ports:
- "3000:3000"
links:
- db
env_file:
- 'docker/.env.web'
volumes:
- './log:/home/app/log'
When I run it on Mac, I get a correct looking directory with the files owned by me. When I run it on a linux box with docker 1.11.2 the permissions are all broken. Docker-compose is version 1.8.0-rc1 in both cases. How is docker Mac managing to avoid permissions issues? Can I replicate this on linux somehow?
Thanks!