Skip to content

Port Issue on Mesos Slave Container #2

@virtualstaticvoid

Description

@virtualstaticvoid

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.

 docker run -d \
 --entrypoint="mesos-slave" \
 --expose=31000-32000 \
 -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:latest

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions