File Permission

less than 1 minute read

I tried to run a MySQL instance with Docker, while mounting its data folder to an folder under my Dropbox so I can reuse the data when I am in different locations. Make sense?

I refered to the doc. It failed to read create the MySQL data folders and files when starting up. But if I run it without -v, it started ok. I navigate to the folder of my host where the volume were mapped to, and found the owner was “vboxadd:daemon”.

So the solution: don’t map this vbox share to my normal user, add something like this in the rc.local: mount -t vboxsf -o umask=0022,uid=999,gid=1 Data /home/raymond/Data

 

Categories: Tech

Updated: