[
https://issues.apache.org/jira/browse/MESOS-1833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193005#comment-14193005
]
Timothy Chen commented on MESOS-1833:
-------------------------------------
commit 3633142e4de6e2641296070934ab2a18e22cb2be
Author: Timothy Chen <[email protected]>
Date: Tue Oct 7 21:36:32 2014 -0700
Symlink sandbox directories in docker containerizer
Review: https://reviews.apache.org/r/26517
> Running docker container with colon in executor id generates error
> ------------------------------------------------------------------
>
> Key: MESOS-1833
> URL: https://issues.apache.org/jira/browse/MESOS-1833
> Project: Mesos
> Issue Type: Bug
> Components: containerization
> Affects Versions: 0.20.0
> Environment: ubuntu (mesosphere vangrant vm)
> Reporter: Elizabeth Lingg
> Assignee: Timothy Chen
> Labels: docker
>
> I created and launched a container successfully in chronos, but when mesos
> ran the docker container, docker did not accept the volumes setting due to
> the colon in the executor id (-v option). Here is the executor id, which is
> valid: ct:1411670160000:0:lldocker.
> In mesos, there will be a fix to avoid using the host directory by use of a
> simlink and mapping. However, ideally docker will fix this issue. They
> should accept executor ids with colons as the format is valid.
> Here is the error log:
> Error: One iContainer '8fdb0cd7-86f8-4bc9-bd1b-d36f86663bb3' for executor
> 'ct:1411670160000:0:lldocker' of framework
> '20140925-174859-16842879-5050-1573-0000' failed to start: Failed to 'docker
> run -d -c 512 -m 536870912 -e mesos_task_id=ct:1411670160000:0:lldocker -e
> CHRONOS_JOB_OWNER= -e MESOS_SANDBOX=/mnt/mesos/sandbox -v
> /tmp/mesos/slaves/20140925-181954-16842879-5050-1560-0/frameworks/20140925-174859-16842879-5050-1573-0000/executors/ct:1411670160000:0:lldocker/runs/8fdb0cd7-86f8-4bc9-bd1b-d36f86663bb3:/mnt/mesos/sandbox
> --net host --entrypoint /bin/sh --name
> mesos-8fdb0cd7-86f8-4bc9-bd1b-d36f86663bb3 libmesos/ubuntu -c while sleep 10;
> do date =u %T; done': exit status = exited with status 2 stderr = invalid
> value
> "/tmp/mesos/slaves/20140925-181954-16842879-5050-1560-0/frameworks/20140925-174859-16842879-5050-1573-0000/executors/ct:1411670160000:0:lldocker/runs/8fdb0cd7-86f8-4bc9-bd1b-d36f86663bb3:/mnt/mesos/sandbox"
> for flag -v: bad format for volumes:
> /tmp/mesos/slaves/20140925-181954-16842879-5050-1560-0/frameworks/20140925-174859-16842879-5050-1573-0000/executors/ct:1411670160000:0:lldocker/runs/8fdb0cd7-86f8-4bc9-bd1b-d36f86663bb3:/mnt/mesos/sandbox
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)