-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port Issue on Mesos Slave Container #2
Comments
Update: I figured out how to change the port range used, and expose them using the docker run command. In this example, I set the range from 31000 to 31050. docker run -d \
--entrypoint="mesos-slave" \
--expose=31000-31050 \
-P \
-e "MESOS_MASTER=zk://${HOST_IP}:2181/mesos" \
-e "MESOS_LOG_DIR=/var/log/mesos" \
-e "MESOS_LOGGING_LEVEL=INFO" \
garland/mesosphere-docker-mesos-master \
--resources="ports(*):[31000-31050]" |
I'm having this same issue, the master can not task the slave. |
Same issue here. |
Same issue as well. I tried to expose the port range as @virtualstaticvoid suggested above; still does not appear to work properly, and it significantly clogs up the results of |
That took a little experimentation, but I found a configuration that seems to work. For the zookeepers, I wrote this startup:
I don't know if the The part I'm pretty sure is absolutely necessary is the modification I made to starting the container with
Both slaves are visible in the Mesos dashboard, and I can successfully execute commands through Marathon. The only problem I anticipate is that, evidently, running |
Hi @sekka1
Firstly, thanks for your article it has helped me get up and running real quick.
I've found an issue when running jobs which need a port open, such as a web server, where it is inaccessible as the port isn't exposed by the mesos slave container.
I tried changing the slave command to expose the range of ports, but I can't get it to work.
Also, I don't know where to find the configured range of ports that mesos (or marathon?) uses, so I guessed at 31000 to 32000.
Thanks
The text was updated successfully, but these errors were encountered: