Search code examples
dockermapr

Docker - Access mapr UI from host


I have installed docker on a CentOS machine. Now I am trying to run a MapR sandbox on it. After starting I get this:

Starting MapR Services.................
To manage this node go to: https://172.17.0.13:8443

But I am not able to access this URL from the windows machine in the same network as the CentOS machine.


Solution

  • This is an internal docker network inaccessible outside of the box. In order to access this container you need:

    • EXPOSE command in container (most likely it is already there)
    • run container with -p option

    If you just specify -p port will be random - you could find it with inspect command, or you could use permanent port -p hostIp:externalPort:8443 where hostIp is address of your docker host.

    After that you could access container from network as https://hostIp:externalPort