[Resolved] Recent change breaks connectivity in Docker (+ non-Docker)

I’ve had issues with being completely unable to connect to a Dockerised dev instance.

I thought I’d give the non_docker dev version a try. From there I could connect to localhost but not any other address. I then saw featheredtoast’s comment about changing the defaults in dev environments to ensure that they bind to localhost (64d51a). So on the Docker instance I checked out the rev prior to that, and I can connect to the Dockerised instance!

Steps to replicate:

  1. Follow Beginners Guide to Install Discourse for Development using Docker

  2. Connections to port 9292 (localhost, 127.0.0.1, ::1, or by IP) are immediately closed

  3. git checkout 4935c9f1f8db54312d8343a278c23cb0d3f6b61b (prior rev)

  4. Rebuild dev environment and run

  5. Connections to port 9292 work as expected

3 Likes

Sure, this is a great catch, addressed here:

https://github.com/discourse/discourse/commit/ff33899323f71ca750c0e555ce8f71d8896a3b3a

If you wish to globally expose the ports from the container to the network (default off) use.

d/boot_dev -p
7 Likes

Thanks @sam :+1:

Can confirm that with latest master (2 commits after yours at time of writing) connectivity seems to work as intended.

4 Likes

This topic was automatically closed after 29 hours. New replies are no longer allowed.