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
1,308 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,690 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
2,527 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,690 points
9,190 views
0 votes
1 answer
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,764 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