Closed hammady closed 7 years ago
Please read the docs, seriously. https://github.com/EugenMayer/docker-sync/wiki/2.-Configuration
# this does not user groupmap but rather configures the server to map
# optional: usually if you map users you want to set the user id of your application container here
sync_userid: '5000'
@EugenMayer thanks for your comment. If you look again at my docker-sync.yml
file you will see that I have already read the documentation and set the sync_userid
. What I have discovered is that this setting along with sync_excludes
won't work by just restarting the sync container, you must remove and recreate it again. This is at least what happened to me.
Thanks again for your awesome work.
@hammady i see - you are not allowed to change anything in the docker-sync.yml without removing the old container ( clean ) - or you risk your settings being not applied, since the container is reused ( which should be in your logs ) - i get that this is not super obvious though, on the other side, we cannot really check easily if you changed the config since you "created" the container last time ( hash sum saving somewhere and so on ) - a lot of effort for a rare case in the daily business, but something starters will run into, i imaging.
Thanks for clarifying and sorry for not looking any better
I would suggest that you clarify this point of recreating the container in the configuration page. Yes, it is a rare case for everyday business, but for starters like me who change the docker-sync.yml
frequently to experiment with the options, it's common to slip into this. Thanks.
good point did so, right on the top :) Feel free to be bold in the wiki, improvements are very welcome, the developers of a tool are most commonly the worse people to write down to the earth docs, even though i tried hard
I was just a victim of this but no bother... Thanks for docker-sync, it makes a huge difference!
Question
For the source code mount below, all files are mounted as
root
. My container runs aswww-data
as it is more secure and I have scripts that can't run usingroot
. As a result, commands likebundle install
can't write theGemfile.lock
and assets can't store the cache intmp/cache
. I noticed there is an option calledsync_userid
but it is not effective. Maybe it works only withrsync
? How can I specify the user id mapping for the mounted volumes?Docker Driver
d4m
Sync strategy
default. I think it uses native_osx but I also get unison messages in the logs!
your docker-sync.yml
OS
macOS Sierra: 10.12.5