This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-20
Channels
- # beginners (43)
- # boot (44)
- # chestnut (17)
- # cider (78)
- # cljs-dev (24)
- # cljsrn (16)
- # clojure (84)
- # clojure-dusseldorf (1)
- # clojure-italy (21)
- # clojure-losangeles (2)
- # clojure-russia (140)
- # clojure-sg (2)
- # clojure-spec (8)
- # clojure-uk (16)
- # clojurescript (23)
- # cursive (7)
- # datascript (1)
- # datomic (18)
- # docker (20)
- # ethereum (1)
- # fulcro (16)
- # garden (4)
- # graphql (27)
- # hoplon (9)
- # jobs (4)
- # luminus (34)
- # off-topic (6)
- # om (4)
- # onyx (35)
- # pedestal (3)
- # re-frame (24)
- # ring-swagger (15)
- # rum (6)
- # shadow-cljs (22)
- # spacemacs (8)
- # specter (22)
- # yada (7)
@yogthos I am trying to get my projectd nrepl running in a Docker container. Have you done that before? I keep getting a error from nrepl. “Caused by: java.net.SocketException: Protocol family unavailable at java.net.PlainSocketImpl.socketBind(Native Method)” and I’ve updated my Dockerfile (generated by the lein setup stuff with the + options for Luminus) to expose port 7000 and updated the CMD - CMD [“lein”, “uberjar” “-Djava.net.preferIPv4Stack=true”] to prefer IP4 addresses like several people mention online, but none of those have worked. So I thought I’d reach out
I even added :nrepl-host “0.0.0.0” to the config.edn file that was generated when I created the project
@staypufd I’m guessing you checked, but are you mapping the port back to the host? docker run -p 7000:7000
I’m running it in the IntelliJ Docker but I have all ports mapped chosen and when I do docker inspect it shows it’s mapped
Caused by: java.net.SocketException: Protocol family unavailable at java.net.PlainSocketImpl.socketBind(Native Method)
that’s where the suggestion from someone who also saw that error to put the -Djava.net.preferIPv4Stack=true
this is vaguely familiar actually and I think it might have to do with the host nrepl is trying to bind to
>FYI: java.net.preferIPv4Addresses does absolutely nothing. this is not a recognized property by java.
this might also be useful https://stackoverflow.com/questions/29957143/make-docker-use-ipv4-for-port-binding
I think you do want to listen on .0.0.0.0 in the container, and you have to make sure docker is allowing ipv4
if you do, might be good to add a “docker” section in deployment docs https://github.com/luminus-framework/luminus/blob/master/resources/md/deployment.md