How to run magento 2 usig docker? shall implement in local for run magento 2 using or creating docker ,I need to know how to implement docker with magento 2 in local kindly help me?

  • 1
    Make sure elastic search is working properly in dokcer!!! – Birjitsinh Zala Aug 24 '20 at 6:38

I would try to follow some tutorials to understand how docker works. Here is a great start: https://tech.osteel.me/posts/docker-for-local-web-development-part-1-a-basic-lemp-stack

Just doing part 1 of that tutorial can clear up a lot of things. I highly recommend it.

If you need a quick setup, you can copy some of my settings from here for Magento 2 install: Nginx throwing 404 - Magento 2 Docker Environment for Windows 10

There is also good tutorial from MageModule team: https://www.youtube.com/watch?v=QTXRYKRldiU

  • sure i will check on this .. i have a doubt shall i implement this in local environment is this possible? – kanidhaya Aug 24 '20 at 6:55
  • Yes, I have been using Docker + WSL2 for last 2 months to develop front-end and backend M2 code. It works well. If you want to skip all that, just get Ubuntu machine and install M2 there. But you will not have ability to switch your environment on a whim like you can with Docker. – Kalvin Klien Aug 24 '20 at 7:04
  • thanks..sure will check and update here – kanidhaya Aug 24 '20 at 7:11

I took the magento cloud docker


I pulled it apart and got open source running on it


Then wrote a quickstart guide


I've got 2.4 running with elastic search

I hope this helps someone

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.