By Gil
For development purpose, I need to setup an installation of WP in a docker.
I found and follow this tutorial
Everything is working well, with all the security and optimisation. But the tutorial is based on WP 4.5.2. And when everything is setup I cannot upgrade WP because of some permission denied. Of course I modified by myself the Dockerfile to get WP4.7 but I will not be able to do the futur upgrade.
Also if I need to install a plugin, it fail because it cannot create the folder in my volume. If I mkdir -p the folders I everything is working fine.
Here the GitHub with all the files.
So I think everything is linked but I cannot fix it. Any idea ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Have you set up a volume in your WordPress deployment so that the process can write files? A docker container itself is read-only so provisions must be made for files that need to be updated/replaced. This guide covers setting up WP with a volume.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.