Docker in VMWare - How to access to Discourse

AI-generated summary

Docker in VMWare - How to access to Discourse

The discussion revolves around accessing a Discourse site installed with Docker on an Ubuntu 16.04 VMWare guest. fredkgb initially reported being unable to access the Discourse homepage from the host machine by entering the VM’s IP address in the browser.

Mittineague shared their own experience with installing Discourse on an Ubuntu 16.04 guest, highlighting the importance of carefully following the installation guide. However, fredkgb clarified that their issue lies in accessing the Discourse site from the host machine, not within the VM.

ssvenn offered potential solutions, including:

  • Checking the Docker container’s status and ports with docker ps
  • Ensuring the firewall is disabled or configured to allow HTTP and HTTPS traffic
  • Verifying that VMWare Player is set to allow outside connections (bridged networking)
  • Testing the Discourse site with curl localhost on the Ubuntu VM command line

fredkgb acknowledged the suggestions and expressed intent to try them.

I installed and setuped Discourse with docker on Ubuntu 16.04 on VMware. But I don’t see the discourse homepage when I put my VM ip address in my browser.

Hi fredkgb welcome to the forum

Installing and configuration isn’t one of my strong points, but hopefully this can be of some help.

I have Windows 10
I installed VMware Player (free version not the paid)
I created an Unbuntu 16.04 LTS guest
I open the guest


login

Then I very carefully followed this topic

From within the guest, pointing the browser to “localhost” opens the forum

Thanks for you answer!

Sorry I wasnt really precise with me question. But I installed Ubuntu without GUI (command line). Now I want to access the discourse site from the main computer. Not in the VM.

I am able to do that ussually (I use a lot of VM for developping), but I think it’s the docker thing who prevent me to access 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.

Thanks! Will try this :slight_smile: