Skip to content

[CI] Redirect docker container TMPDIR to repo volume to fix ENOSPC - #759

Closed
huaychou wants to merge 1 commit into
mainfrom
dev/huaychou/fix-docker-tmp-no-space
Closed

huaychou wants to merge 1 commit into
mainfrom
dev/huaychou/fix-docker-tmp-no-space

Conversation

@huaychou

Copy link
Copy Markdown
Collaborator

Description

  • The repo is already mounted at /ort (host: /local/mnt, ~20 GB free). Set TMPDIR/TEMP/TMP inside DockerBuildAndTestTask to /ort/build/_docker_tmp and create that directory on the host before the container runs, so all temp churn lands on the roomy volume instead of /var.

Motivation and Context

  • Wheel packaging (bdist_wheel) calls Python's tempfile.mkdtemp() which defaults to /tmp inside the container. The container's /tmp is backed by docker's overlay on /var, which is only ~1 GB free on CI runners. This causes OSError: [Errno 28] No space left on device when building the Python wheel.

Wheel packaging (bdist_wheel) calls Python's tempfile.mkdtemp() which
defaults to /tmp inside the container.  The container's /tmp is backed
by docker's overlay on /var, which is only ~1 GB free on CI runners.
This causes OSError: [Errno 28] No space left on device when building
the Python wheel.

The repo is already mounted at /ort (host: /local/mnt, ~20 GB free).
Set TMPDIR/TEMP/TMP inside DockerBuildAndTestTask to /ort/build/_docker_tmp
and create that directory on the host before the container runs, so all
temp churn lands on the roomy volume instead of /var.
@huaychou

Copy link
Copy Markdown
Collaborator Author

No issue found.

@huaychou huaychou closed this Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant