[
https://issues.apache.org/jira/browse/MESOS-6950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15829034#comment-15829034
]
Qian Zhang commented on MESOS-6950:
-----------------------------------
The root cause of this issue is, in the {{_get()}} method of Docker store, we
always create the staging directory at the beginning, but we do not remove that
staging directory if there is an ongoing pulling for the same image, see the
following code for details.
https://github.com/apache/mesos/blob/1.1.0/src/slave/containerizer/mesos/provisioner/docker/store.cpp#L217:L244
> Launching two tasks with the same Docker image simultaneously may cause a
> staging dir never cleaned up
> ------------------------------------------------------------------------------------------------------
>
> Key: MESOS-6950
> URL: https://issues.apache.org/jira/browse/MESOS-6950
> Project: Mesos
> Issue Type: Bug
> Components: containerization
> Reporter: Qian Zhang
>
> If user launches two tasks with the same Docker image simultaneously (e.g.,
> run {{mesos-executor}} twice with the same Docker image), there will be a
> staging directory which is for the second task never cleaned up, like this:
> {code}
> └── store
> └── docker
> ├── layers
> │ ...
> ├── staging
> │ └── a6rXWC
> └── storedImages
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)