WordPress write-access when using Docker for Windows

0 votes

I’m trying to setup a local Wordpress dev environment on Docker for Windows and WSL. I'm using docker-compose to do this.

WordPress is running, but I’m unable to update or add plugins.

WordPress service section of the docker-compose.yml is below:

volumes:
  - ./wp-content:/var/www/html/wp-content

Can someone help me with this?

Dec 4, 2018 in DevOps & Agile by Sophie may
• 10,620 points
633 views

1 answer to this question.

0 votes

Try these steps:

  1. Start the container as administrator using user: root inside the compose file
  2. You can also create your own Docker image that extends wordpress using FROM wordpress and RUN chmod -R 766 /var/www/html/wp-content
answered Dec 4, 2018 by Tyrion anex
• 8,700 points

Related Questions In DevOps & Agile

0 votes
1 answer

Error: Unable to access elasticsearch in docker for windows

This is simple, just follow the below ...READ MORE

answered Sep 3, 2018 in DevOps & Agile by Sophie may
• 10,620 points
1,707 views
0 votes
1 answer

How to restart docker for windows using Powershell?

Try this: $processes = Get-Process "*docker for windows*" if ...READ MORE

answered Oct 23, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
7,587 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,738 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP