How to run Magento 2 with Docker -- The following line define need in hosts file 127.0.0.1 magento2.local -- Run in terminal the following lines at the magento main directory docker-compose up Magento Admin User Credential username : admin password : magento12