clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

Windows10 #30

Closed prancius closed 6 years ago

prancius commented 6 years ago

Would be nice to have clear instruction running for windows10 with docker, docket-compose and docker-sync . Command by command tutorial. Now i am stuck that : Can not connect to docker at 127.0.0.1:2375

CajuCLC commented 6 years ago

You might want to use export DOCKER_HOST=tcp://0.0.0.0:2375 on ~/.bash_profile and then you need to enable Expose Daemon on Docker settings.

rafaelstz commented 6 years ago

@prancius the suggestion above did work?

CajuCLC commented 6 years ago

Just adding some more context and making my comment easier to follow.

  1. Enable Expose daemon on tcp://localhost:2375 without TLS on Docker settings.
  2. Export DOCKER_HOST on WSL. You can do it two ways (I am doing option a). a. echo "export DOCKER_HOST=tcp://0.0.0.0:2375" >> ~/.bashrc && source ~/.bashrc echo source ~/.bashrc >> ~/.bash_profile

b. echo "export DOCKER_HOST=tcp://0.0.0.0:2375" >> ~/.bash_profile && source ~/.bash_profile

First time I used option a, but with some new updates from Microsoft bashrc is not being sourced when it starts for some reason. That's why I added the source on .bash_profile. Either way will work for you.

LiamKarlMitchell commented 6 years ago

No curl on windows.

CajuCLC commented 6 years ago

@LiamKarlMitchell You don't need curl for this.