Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4DB2E200B9C for ; Mon, 26 Sep 2016 08:24:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4AF45160AE3; Mon, 26 Sep 2016 06:24:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 91B13160ACE for ; Mon, 26 Sep 2016 08:24:21 +0200 (CEST) Received: (qmail 36880 invoked by uid 500); 26 Sep 2016 06:24:20 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 36869 invoked by uid 99); 26 Sep 2016 06:24:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2016 06:24:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8AE352C002D for ; Mon, 26 Sep 2016 06:24:20 +0000 (UTC) Date: Mon, 26 Sep 2016 06:24:20 +0000 (UTC) From: =?utf-8?Q?St=C3=A9phane_Cottin_=28JIRA=29?= To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-5229) Mesos containerizer should support file mounts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 26 Sep 2016 06:24:22 -0000 [ https://issues.apache.org/jira/browse/MESOS-5229?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1552= 2203#comment-15522203 ]=20 St=C3=A9phane Cottin commented on MESOS-5229: ---------------------------------------- Even with docker (mesos container or without mesos), mounting a single file= is not reliable. Your file has to exists before trying to mount it, or doc= ker will create a folder instead. For example, if you try to mount something like /var/run/mysql/mysql.sock, = and for some reason the docker container starts first, then you have a fold= er created on the path and mysql cannot create its socket. AFAIK, there is no way to tell docker to not create a folder and fail if th= e "file" (folder, file, named pipe, socket, ...) does not exists. If mesos containerizer file mount support is added, we should be able to ex= plicitly describe in the proto that's "not a folder", and if we allow auto-= creation of an empty regular file or not. > Mesos containerizer should support file mounts > ---------------------------------------------- > > Key: MESOS-5229 > URL: https://issues.apache.org/jira/browse/MESOS-5229 > Project: Mesos > Issue Type: Task > Components: containerization > Reporter: Joshua Cohen > > When using an image to represent a container's file system, it's currentl= y not possible to mount a single file into the filesystem. I had to resort = to adding {{RUN touch /path/to/my/file}} in my Dockerfile in order to get t= he filesystem provisioned properly. > It would be great if this wasn't necessary. Even better would be if Mesos= would create all mount points on demand, rather than requiring them to be = present in the container filesystem (c.f. https://github.com/apache/mesos/b= lob/master/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp#L52= 2-L527) -- This message was sent by Atlassian JIRA (v6.3.4#6332)