Well looks like it is back to docker. I have a working HTTP.jl in linux now. and it still fails in the docker environment
Here is the code which works fine in linux
using HTTP
HTTP.listen("127.0.0.1", 8080, verbose = true) do http
write(http, "OK")
end
yet, if I create docker image (as per original post )
FROM julia:1.1.0
RUN julia -e 'using Pkg;Pkg.REPLMode.pkgstr("add HTTP ;precompile");using HTTP'
WORKDIR /root/code
ADD . /root/code
CMD julia -i test_http.jl
and start it
docker run --rm -it -p 8080:8080 http-simple
I cannot connect to container from the host browser/curl. yet if I login in container’s console. curl works just fine within the container.