You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Tobias Pfeiffer <tg...@preferred.jp> on 2017/10/23 08:00:41 UTC
Directory mounted in job not visible on host
Hi,
in my Mesos job (Mesos containerizer) I am mounting a squashfs image file
to some directory on the file system and can access the directory and its
contents fine from within that job. However, on the Mesos host (i.e., not
in the job itself) that directory does not appear in the output of the
`mount` command and when inspecting the directory, it is empty. In
particular, my Mesos job launches a Docker container and mounts that
previously mounted directory as a volume (don't ask ...), but in the Docker
container that volume is also empty.
I am wondering if there is any way that I could make a mount operation
performed by a job visible to the outside world?
Thanks
Tobias
Re: Directory mounted in job not visible on host
Posted by Tobias Pfeiffer <tg...@preferred.jp>.
Jie,
that's great, thank you! Looking forward to that functionality!
Thanks
Tobias
On Tue, Oct 24, 2017 at 12:20 AM, Jie Yu <yu...@gmail.com> wrote:
> Tobias,
>
> By default, Mesos marks all mounts in a Mesos container as slave mount.
> Therefore, the mount propagation is from host to container, but not
> container to host.
>
> I am actually working on a patch chain to enable bidirectional mount
> propagation:
> https://issues.apache.org/jira/browse/MESOS-7306
>
> In particular, see the proposed API in this patch:
> https://reviews.apache.org/r/63213/
>
> That'll help achieve your goal. Stay tuned and we'll land this in next
> Mesos release.
>
> - Jie
>
> On Mon, Oct 23, 2017 at 1:00 AM, Tobias Pfeiffer <tg...@preferred.jp> wrote:
>
>> Hi,
>>
>> in my Mesos job (Mesos containerizer) I am mounting a squashfs image file
>> to some directory on the file system and can access the directory and its
>> contents fine from within that job. However, on the Mesos host (i.e., not
>> in the job itself) that directory does not appear in the output of the
>> `mount` command and when inspecting the directory, it is empty. In
>> particular, my Mesos job launches a Docker container and mounts that
>> previously mounted directory as a volume (don't ask ...), but in the Docker
>> container that volume is also empty.
>>
>> I am wondering if there is any way that I could make a mount operation
>> performed by a job visible to the outside world?
>>
>> Thanks
>> Tobias
>>
>>
>
--
Tobias Pfeiffer, Lead Engineer
Preferred Networks Inc, <https://www.preferred-networks.jp/>
Re: Directory mounted in job not visible on host
Posted by Jie Yu <yu...@gmail.com>.
Tobias,
By default, Mesos marks all mounts in a Mesos container as slave mount.
Therefore, the mount propagation is from host to container, but not
container to host.
I am actually working on a patch chain to enable bidirectional mount
propagation:
https://issues.apache.org/jira/browse/MESOS-7306
In particular, see the proposed API in this patch:
https://reviews.apache.org/r/63213/
That'll help achieve your goal. Stay tuned and we'll land this in next
Mesos release.
- Jie
On Mon, Oct 23, 2017 at 1:00 AM, Tobias Pfeiffer <tg...@preferred.jp> wrote:
> Hi,
>
> in my Mesos job (Mesos containerizer) I am mounting a squashfs image file
> to some directory on the file system and can access the directory and its
> contents fine from within that job. However, on the Mesos host (i.e., not
> in the job itself) that directory does not appear in the output of the
> `mount` command and when inspecting the directory, it is empty. In
> particular, my Mesos job launches a Docker container and mounts that
> previously mounted directory as a volume (don't ask ...), but in the Docker
> container that volume is also empty.
>
> I am wondering if there is any way that I could make a mount operation
> performed by a job visible to the outside world?
>
> Thanks
> Tobias
>
>