You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Andrii Loshkovskyi <al...@softserveinc.com> on 2015/08/03 11:51:13 UTC
Change DOCKER_HOST for Mesos slave
Hello,
I was able to change DOCKER_HOST in Mesos 0.22.1 but with upgrade to Mesos 0.23 I'm no longer able to do that.
I override the systemd unit file this way:
cat /etc/systemd/system/mesos-slave.service.d/docker.conf
[Service]
Environment="DOCKER_HOST=localhost:2377"
cat /etc/mesos-slave/containerizers
docker,mesos
This doesn't work in the latest Mesos. I use CentOS 7, Docker 1.6.2.
>From the changelog I see that there were a lot of changes to containers network isolation in Mesos, maybe it's somehow related.
I have checked the containeraizer code, but not able to identify the issue.
I would really appreciate if someone advises me on this issue.
Thank you.
--
Kind regards,
Andrii Loshkovskyi
Re: Change DOCKER_HOST for Mesos slave
Posted by Adam Bordelon <ad...@mesosphere.io>.
Andrii, you might also be interested in the new
--executor_environment_variables flag on the slave.
See http://mesos.apache.org/documentation/latest/configuration/
I'm not sure if this override occurs before the docker run command.
On Mon, Aug 3, 2015 at 8:51 AM, Timothy Chen <ti...@mesosphere.io> wrote:
> Hi Andrii,
>
> We never intend to pick up local OS environment to be passed into
> containerizer, as we want to make sure all environment variables are
> intentionally specifies from the framework for the task.
>
> Does that docker.conf setting generate a new docker.conf file or?
>
> Tim
>
>
>
> > On Aug 3, 2015, at 2:51 AM, Andrii Loshkovskyi <al...@softserveinc.com>
> wrote:
> >
> > Hello,
> >
> > I was able to change DOCKER_HOST in Mesos 0.22.1 but with upgrade to
> Mesos 0.23 I'm no longer able to do that.
> >
> > I override the systemd unit file this way:
> >
> > cat /etc/systemd/system/mesos-slave.service.d/docker.conf
> > [Service]
> > Environment="DOCKER_HOST=localhost:2377"
> >
> > cat /etc/mesos-slave/containerizers
> > docker,mesos
> >
> > This doesn't work in the latest Mesos. I use CentOS 7, Docker 1.6.2.
> > From the changelog I see that there were a lot of changes to containers
> network isolation in Mesos, maybe it's somehow related.
> > I have checked the containeraizer code, but not able to identify the
> issue.
> >
> > I would really appreciate if someone advises me on this issue.
> >
> > Thank you.
> >
> > --
> > Kind regards,
> > Andrii Loshkovskyi
>
Re: Change DOCKER_HOST for Mesos slave
Posted by Timothy Chen <ti...@mesosphere.io>.
Hi Andrii,
We never intend to pick up local OS environment to be passed into containerizer, as we want to make sure all environment variables are intentionally specifies from the framework for the task.
Does that docker.conf setting generate a new docker.conf file or?
Tim
> On Aug 3, 2015, at 2:51 AM, Andrii Loshkovskyi <al...@softserveinc.com> wrote:
>
> Hello,
>
> I was able to change DOCKER_HOST in Mesos 0.22.1 but with upgrade to Mesos 0.23 I'm no longer able to do that.
>
> I override the systemd unit file this way:
>
> cat /etc/systemd/system/mesos-slave.service.d/docker.conf
> [Service]
> Environment="DOCKER_HOST=localhost:2377"
>
> cat /etc/mesos-slave/containerizers
> docker,mesos
>
> This doesn't work in the latest Mesos. I use CentOS 7, Docker 1.6.2.
> From the changelog I see that there were a lot of changes to containers network isolation in Mesos, maybe it's somehow related.
> I have checked the containeraizer code, but not able to identify the issue.
>
> I would really appreciate if someone advises me on this issue.
>
> Thank you.
>
> --
> Kind regards,
> Andrii Loshkovskyi