alankent / magento2devbox-skeleton

Skeleton files for a new DevBox related project.
22 stars 10 forks source link

ssh issue on a Windows 7 machine #2

Open stephandejongnl opened 6 years ago

stephandejongnl commented 6 years ago

I followed the steps to install the environment on a Windows 7 machine.

To get Docker running I installed Docker toolbox for Windows 7. Created a project folder with in this folder the folders "shared/www" Updated the "docker-compose.yml" file.

And started the container:

$ command docker-compose up -d

The container is started the ssh port is set to 2222

$ docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bc59c983e26f alankent/magento2devbox-unison:latest "/entrypoint.sh" 17 hours ago Up 8 minutes 0.0.0.0:32769->22/tcp, 0.0.0.0:32768->5000/tcp testproject_unison_1
603637884bb8 alankent/magento2devbox-web:latest "/usr/local/bin/en..." 17 hours ago Up 8 minutes 5000/tcp, 9000-9001/tcp, 44100/tcp, 0.0.0.0:2222->22/tcp, 0.0.0.0:9090->80/tcp, 0.0.0.0:32771->3000/tcp, 0.0.0.0:32770->3001/tcp testproject_web_1
57be0e9ced37 mysql:5.6 "docker-entrypoint..." 18 hours ago Up 8 minutes 0.0.0.0:32772->3306/tcp testproject_db_1

When I try to connect to the container with ssh the connection is refused.

$ ./m2ssh ssh: connect to host localhost port 2222: Connection refused

@alankent or someone else who have any idea why?

I also tried to install it on an old MackBook and that works fine. however this MacBook isn't mine so I can’t use is to develop on it was just to test.

nemesis-back commented 6 years ago

@stephandejongnl if you are using docker toolbox + VirtualBox docker host IP will be other than "localhost". change SSH_HOST in https://github.com/alankent/magento2devbox-skeleton/blob/8870b5914091bba158f9668618c5cdc5a00b327c/m2ssh#L9 to IP of your Virtual Box machine (run docker-machine ip)