Return-Path: X-Original-To: apmail-mesos-issues-archive@minotaur.apache.org Delivered-To: apmail-mesos-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92E81189E9 for ; Tue, 23 Jun 2015 15:12:00 +0000 (UTC) Received: (qmail 56620 invoked by uid 500); 23 Jun 2015 15:12:00 -0000 Delivered-To: apmail-mesos-issues-archive@mesos.apache.org Received: (qmail 56585 invoked by uid 500); 23 Jun 2015 15:12:00 -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 56575 invoked by uid 99); 23 Jun 2015 15:12:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 15:12:00 +0000 Date: Tue, 23 Jun 2015 15:12:00 +0000 (UTC) From: "Martin Tapp (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-2374) Support relative host paths for container volumes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-2374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597776#comment-14597776 ] Martin Tapp commented on MESOS-2374: ------------------------------------ Seems to affect this line https://github.com/apache/mesos/blob/f13239e14f9a982465e93184ef6e34395eb561f4/src/docker/docker.cpp#L379 volumeConfig = volume.host_path() + ":" + volumeConfig Instead of using volume.host_path, should refer to local sandbox path when relative path. Anyone can submit a patch for this. Thanks > Support relative host paths for container volumes > ------------------------------------------------- > > Key: MESOS-2374 > URL: https://issues.apache.org/jira/browse/MESOS-2374 > Project: Mesos > Issue Type: Improvement > Components: containerization, docker > Affects Versions: 0.21.1 > Reporter: Mike Babineau > > There is no convenient way to mount sandbox subdirectories (such as unpacked archives from fetched URIs) as container volumes. > While it is possible to access sandbox subdirectories via $MESOS_SANDBOX, this presumes the container is expecting $MESOS_SANDBOX to be passed in. Furthermore, it also expects the container already knows the resulting subdirectory paths. Unfortunately, since the archives are extracted by the fetcher, operators can not control these paths. Path changes to the extracted archive must be accompanied by a container image change. > One potential solution: > Add support for relative paths to the containerizer. If the containerizer is given a relative host path, it simply prepends the sandbox path before passing it to Docker (or similar). -- This message was sent by Atlassian JIRA (v6.3.4#6332)