Skip to content

Usage in docker: error: failed to remove directory /app/.venv: Resource busy (os error 16) #14815

@coretl

Description

@coretl

Summary

I am using uv inside a devcontainer using a volume mount for .venv as desribed in the docs. With the uv binaries from the latest published 0.7 container this works fine. With the uv binaries from the latest published 0.8 container then uv sync fails with error: failed to remove directory /app/.venv: Resource busy (os error 16)

The reproducer from #9423 also fails and demonstrates the error

Platform

RHEL8

Version

uv 0.8.0

Python version

Python 3.11.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions