ByteInternet / hypernode-docker

Fast and easy Docker for Magento development
https://community.hypernode.io/hypernode-docker
35 stars 8 forks source link

cannot reach site on brwoser #47

Closed Top-CMS closed 1 year ago

Top-CMS commented 3 years ago

Hi,

Successful installed the docker (docker.hypernode.com/byteinternet/hypernode-buster-docker-php74-mysql57:latest). But I have some problems with connections:

  1. Cannot login with: `# SSH into the machine using the retrieved IP address. Example: ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null app@172.17.0.2

    Or as the root user

    ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null root@172.17.0.2`

I can login with: ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null root@localhost -p 1122

  1. In CLI, everything works fine....magerun2, php bin/magento, but I cannot access site on my webbrowser tried:

Also added to my windows hostfile 172.17.0.2 test.hypernode.local

How can I see the site in my browser?

vdloo commented 3 years ago

Hi, I'm not really familiar with running Docker on Windows at all but this more sounds like an issue with your Docker networking configuration in general instead of something related to this container. Perhaps looking inside the guest can help you rule out some problems:

If that all looks good make sure you 'expose' these ports to your host: https://docs.docker.com/config/containers/container-networking/#published-ports. How that works on Windows where the containers run inside some kind of virtual machine I do not know, but I'm sure that's something you can find with some googling.

btw if you can SSH to localhost on port 1122 perhaps you have also forwarded the other ports to localhost?