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 3, 2018 in DevOps & Agile by Sophie may
• 9,050 points
39 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 3, 2018 by Tyrion anex
• 8,280 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
• 9,050 points
25 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,280 points
83 views
0 votes
1 answer
0 votes
1 answer
0 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
• 56,120 points
60 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.