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:
Follow Beginners Guide to Install Discourse for Development using Docker
Connections to port 9292 (localhost, 127.0.0.1, ::1, or by IP) are immediately closed
git checkout 4935c9f1f8db54312d8343a278c23cb0d3f6b61b (prior rev )
Rebuild dev environment and run
Connections to port 9292 work as expected
3 Likes
sam
(Sam Saffron)
November 4, 2019, 1:53am
2
Sure, this is a great catch, addressed here:
committed 01:51AM - 04 Nov 19 UTC
Previously we had no control over how internal ports in the containter got
publi… shed.
Following UNICORN_BIND_ALL=true setting this broke docker dev env and exposed
this weakness.
The new `d/boot_dev` will only export on localhost, if you wish to export
network with use `d/boot_dev -p`
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
Can confirm that with latest master (2 commits after yours at time of writing) connectivity seems to work as intended.
4 Likes
sam
(Sam Saffron)
Closed
November 5, 2019, 7:06am
4
This topic was automatically closed after 29 hours. New replies are no longer allowed.