Search code examples
windowsdockercratekitematic

Unable to access port inside Docker


What could be wrong if the docker port cannot be accessed via the Access URL:

enter image description here

https://hub.docker.com/r/library/crate/


Solution

  • Since crate is listening on 127.0.0.1 it won't be accessible from outside the world since for the host 127.0.0.1 means something else. So you need to make your crate container listen on host IP. You can do that using:

    $ docker run --net=host -d crate crate -Cnetwork.host=_site_
    

    Details here. Also, there is change in release 2.X.X which is causing trouble for a lot of people it says:

    Changed default bind and publish address from 0.0.0.0 to the system loopback addresses which will result in CrateDB listening only to local ports.

    Have a look at release notes here.