Mattermost, Inc.

Issues reaching Docker container from company network

I’ve installed Mattermost on a new Mac mini (OS X Yosemite) following the instructions posted here:

https://github.com/mattermost/platform/blob/master/doc/install/Docker-Single-Container.md#mac-osx

I can hit the http://dockerhost:8065/ page and set up a team and user. However, I can’t seem to figure out how to access that page from a different computer within the same network. Here is what I understand:

  1. The instructions appear to be for dev purposes
  2. The IP address that is mapped in /etc/hosts is just a local address
  3. I presume that there is some sort of port fowarding that needs to occur

I’m not a systems admin or a developer so I would appreciate it if somebody could give me the steps to access this host from another computer. Again, we want to be able to hit this internally and therefore we can’t serve it from AWS as our firewalls prevent access to AWS.

1 Like

This is not so much of a mattermost question actually. You need to make sure that all other machines in your network can actually resolve the hostname of wherever mattermost runs. You can check if it does by pinging the node for instance. Here’s the difference between a host that can and cannot be resolved:

[root@master walter_mattermost_config]# ping gitlab.olindata.vm
PING gitlab.olindata.vm (10.20.1.50) 56(84) bytes of data.
64 bytes from gitlab.olindata.vm (10.20.1.50): icmp_seq=1 ttl=64 time=0.349 ms
64 bytes from gitlab.olindata.vm (10.20.1.50): icmp_seq=2 ttl=64 time=0.361 ms
[root@master walter_mattermost_config]# ping mattermost.olindata.vm
ping: unknown host mattermost.olindata.vm

How to add dns entries I’ll leave up to your google skills :wink:

I can ping the ip address of the Mac mini (not of the docker ip: 192.168.99.100) successfully from another machine but I can’t seem to resolve http://dockerhost:8065 nor http://<ip_address>:8065. However, I can obviously access http://dockerhost:8065 directly from the Mac mini. Again, I’m not a sys admin so it would be great if you could offer any further suggestions.

This is an issue that happens when running docker on a Mac. On a Mac, docker runs on a virtual machine, so connecting to the Mac’s IP address does not mean you are connecting to the docker container. You may be able to find more information about this on the docker website.

Hello Friends,

I’m also facing similar issue.

I’ve deployed docker image on window server using KITEMATIC.

My Window Server IP address is 192.168.0.201 and after starting mattermost image, it’s ip address is 192.168.99.100:8065

I’m able to acces mattermost from this window server but when tried to access mattermost (192.168.99.100:8065) from other connected machine, It do not works.

all other machine are well connected with windows server but not with mattermost.

I’ve open the IN BOUND HTTP PORT 8065 on this Window Server Firewall.

Did I miss anything ? I’m not system admin so need expert help here.

Thank you in advance.