Pull moodle image: docker pull ymnoor21/moodle
Create container and note the container id after running this command:
docker run -d -p 8080:8080 ymnoor21/moodle
Replace the container id with:
docker exec -it <container id from step 2> /bin/bash
You will be taken to the container shell prompt. Now type the following command and press enter:
It will install all the necessary software and setup moodle environment.
After the installation finishes. Browse http://localhost:8080/moodle/.
You'll see moodle installation page. Press Next.
Change "Data directory" from
Change settings if you need to:
a. Database host:
b. Database name:
c. Database user:
d. Database password:
e. Database port:
The installer will run some scripts and will probably take couple of minutes to finish. So hang tight.
Change Username to your name:
macgyver(or whatever your name is)
Now change the password by clicking on the link
Click to enter text. I'd set it to something simple. Ex:
Admin32!. So please remember the username, password combination.
Add Email Address to your school email. Ex:
You can continue to fill out other empty boxes but they are not required fields. So I wouldn't bother.
So now Press
Full site name,
Short name for site. Change Default Timezone to
America/Los_Angeles. Change noreply address to your email address. Ex:
Congratulations. You're done installing moodle. You should be in admin panel now. Explore and Enjoy.