Data directory (/var/www/moodledata) cannot be created by the installer

Data directory (/var/www/moodledata) cannot be created by the installer

by Nur - A - Alam Abir -
Number of replies: 1

I'm trying to deploy moodle into docker,

here is the stepped i followed

First, create a new network for the application and the database$ docker network create moodle

Then, start a new database process in an isolated container: $ docker run --name mysql --network moodle -e MYSQL_ROOT_PASSWORD=password -d mysql

Finally, you can run this moodle image and link it to your mysql container: $ docker run --name my-moodle --network moodle --link mysql:database -p 8080:80 -d aesr/moodle

Access it via http://localhost:8080 or http://host-ip:8080 in a browser.

But while installing moodle im getting 

Data directory (/var/www/moodledata) cannot be created by the installer.

error

maybe because of Apache doesn't have the proper permission 

Can anyone please guide me step by step in order to fix it??
I'm running Docker on windows

Average of ratings: -
In reply to Nur - A - Alam Abir

Re: Data directory (/var/www/moodledata) cannot be created by the installer

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't believe that there is a "supported" Docker container for Moodle.

If you are having an issue with a Docker container, I would start with asking whoever provided the container.

Note that as this is really just a variation on a "one click installer". We don't recommend them at all. They rarely work properly and we cannot support you (as we don't know what they do).