Giter Site home page Giter Site logo

Comments (4)

Fooriva avatar Fooriva commented on July 18, 2024 2

Well, I cannot make it work on Windows, as even setting in the framework configuration the "777" rights on the generated cache files, they are in 755 mod inside the container. As Docker for Windows does not allow modifying rights / owners on mounted volumes, I have no correct solution if the files are generated with wrong rights, and not owned by the "docker" user (which will try to overwrite them later).

So, as a workaround, I switched from file cache to APCU and it works like a charm.

from docker-images-php.

moufmouf avatar moufmouf commented on July 18, 2024

Hey @Fooriva !

Is this a real issue that prevents you from writing files?

In my experience, the ownership of files is not an issue on Windows and completely flacky on MacOS.

Basically, the mount points are owned by root BUT anyone can write in those mount point, whatever the current user is.
On MacOS, it's even worse, the owner changes randomly based on who did the last write. Yet, anyone can still write to these files, so this should not be a problem in practice.

Could you confirm to me that you cannot write to files with the "docker" user (I'm pretty sure you actually can)

from docker-images-php.

Fooriva avatar Fooriva commented on July 18, 2024

Actually, the docker user can't overwrite cache files located inside the /var/www/html/tmp directory (Those are created in 755 mod owned by "root", as the rest of the /var/www/html directory is in 777 mod).

I'm currently looking to see if it can be related to a framework configuration issue.

from docker-images-php.

moufmouf avatar moufmouf commented on July 18, 2024

Still, that's weird... I faced the same issue a few days ago. I could not change any file because of right issues.
I unshared and shared again my Drive in the "Shared drive" settings of Docker and suddenly, I could change the files again. Could you try that?

from docker-images-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.