# Docker QIIME2 / No space left on device

**URL:** <https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851>\
**Category:** Technical Support\
**Tags:** feature-classifier, docker\
**Created:** [November 8, 2018, 1:30pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851 "2018-11-08T13:30:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![apeltzer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/apeltzer/32/20061_2.png) [@apeltzer](https://forum.qiime2.org/u/apeltzer)\
**Post date:** [November 8, 2018, 1:30pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/1 "2018-11-08T13:30:13Z")

</div>

HI there,

I'm currently setting up a Nextflow pipeline together with a colleague to run certain steps of QIIME2 in a nextflow automated script. For this, I created a Docker Image containing all tools required by QIIME2 (basically copying the QIIME2 environment.yaml) and then started running things. Most run well, but the classifier apparently runs out of disk space every time with some test data.

```
  OSError: [Errno 28] No space left on device
  
  Plugin error from feature-classifier:
  
[Errno 28] No space left on device

```

Trying to set TMPDIR etc via Nextflow didn't help at all unfortunately - can someone maybe elaborate where this step stores temporary data in general?

---

<div class="post-metadata">

**Author:** ![apeltzer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/apeltzer/32/20061_2.png) [@apeltzer](https://forum.qiime2.org/u/apeltzer)\
**Post date:** [November 8, 2018, 1:42pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/2 "2018-11-08T13:42:50Z")

</div>

One more thing here. I read up a bit on the failure and saw that this temp dir thing is just used when an appropriate backend is used. I had to use an offscreen renderer to get around qt issues, so that might be the problem why this is not used at all?

When running inside my docker container, I can run echo $TEMP/$TEMPDIR/$TMP and they all point to the correct /tmp folder on my host which is mounted inside the container appropriately.

[https://scikit-learn.org/stable/modules/generated/sklearn.utils.Parallel.html](https://scikit-learn.org/stable/modules/generated/sklearn.utils.Parallel.html)

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [November 8, 2018, 1:44pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/3 "2018-11-08T13:44:59Z")

</div>

Assigned @thermokarst on November 8, 2018, 1:44pm UTC



---

<div class="post-metadata">

**Author:** ![apeltzer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/apeltzer/32/20061_2.png) [@apeltzer](https://forum.qiime2.org/u/apeltzer)\
**Post date:** [November 9, 2018, 3:08pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/4 "2018-11-09T15:08:15Z")

</div>

Setting `JOBLIB_TEMP_FOLDER` first, setting this fixed to `/tmp` and using nextflows `docker.temp = 'auto'` resolved the issue.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [November 9, 2018, 3:10pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/5 "2018-11-09T15:10:57Z")

</div>

Unassigned @thermokarst on November 9, 2018, 3:10pm UTC



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [November 9, 2018, 4:17pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/6 "2018-11-09T16:17:02Z")

</div>

Hey there @apeltzer, sorry we didn't get back to you sooner, things have been busy trying to get the release out the door. Glad to hear you found a solution! Related, this issue came up pretty recently on the issue tracker for the Docker builds:

[https://github.com/qiime2/vm-playbooks/issues/60](https://github.com/qiime2/vm-playbooks/issues/60)

My plan is to incorporate this change in the 2018.11 docker image --- probably will happen some time next week. Thanks!

---

<div class="post-metadata">

**Author:** ![apeltzer](https://forum.qiime2.org/user_avatar/forum.qiime2.org/apeltzer/32/20061_2.png) [@apeltzer](https://forum.qiime2.org/u/apeltzer)\
**Post date:** [November 12, 2018, 1:27pm UTC](https://forum.qiime2.org/t/docker-qiime2-no-space-left-on-device/6851/7 "2018-11-12T13:27:35Z")

</div>

Makes sense - also mentioning that this is something that can be adjusted would be nice 🙂
