Docker in VMWare - How to access to Discourse

You can try some things inside the VM to figure out what works and what doesn’t

“docker ps” should give you a list of running containers like this, where the interesting part is the status, ports and bound IP address:

ssvenn@disco:~$ docker ps
CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                      NAMES
a4a2d40e3539        local_discourse/app   "/sbin/boot"        3 months ago        Up 3 weeks          0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   app

0.0.0.0 means it is bound to every IP on that server, if it only says 127.0.0.1 you are stuck connecting from localhost.
Make sure the firewall is disabled in ubuntu or configured to let http and https through, and make sure the vmware player is configured to allow outside connections (usually this means bridged networking). Double check the ip address with “ip addr” on the commandline.

You can also test typing “curl localhost” on the commandline of the ubuntu VM to see if you actually have the app running correctly and responding to requests.

3 Me gusta