Comments (4)
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.
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.
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.
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)
- Add decimal extension
- Cannot run Composer binaries without path anymore HOT 13
- Add uopz extension HOT 2
- Add libvips HOT 2
- Lots of `<defunct>` processes when using Cron HOT 2
- No rebuild with Composer 2.6.2? HOT 3
- Publishing image on other container registries HOT 4
- Docker fails when using non-privileged user HOT 2
- Add PHP 8.3 images HOT 15
- Extra extentions loading not working for BitBucket pipeline HOT 4
- Building image from php:8.2-v4-apache or php:8.3-v4-apache fails with modified php.ini query HOT 3
- Redis missing from fat image HOT 5
- Missing "gd" PHP extension HOT 3
- Composer 2.7 and CVE-2024-24821 HOT 1
- Extension opentelemetry HOT 1
- Install SQL Server (sqlsrv) and PDO_SQLSRV (pdo_sqlsrv) HOT 2
- GItlab ci: Composer cache permission denied HOT 3
- Outdated PHP versions for most 8.3 images HOT 2
- How do I get SSL working? HOT 1
- `./install.sh: 1: ../core/excimer: not found` in php 8.3 v4 slim apache HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-images-php.