-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
container-image with uv-######.lock file in /tmp #135123
Comments
I had a chat with @konstin, where he explained that when using One possible workaround would be to mount
|
AFAIK this lock file is only placed while uv is running. Leaving it back seems to be an indicator that something get wrong. What's about putting a command in the docker file to clean up /tmp/ as a workaround? |
That's not true. The program decides how to use its own lock file, and After doing some additional tests, the lock file will be recreated if dependencies are installed, e.g., adding a custom component.
I don't see any benefit to adding this, as the lock file will be recreated, and we have no issues currently. As the lock file is empty, it's not saving any space. Nevertheless, the hassfest image uses uv only during build and therefore, we could remove it there |
The problem
containers comes with a
.lock
file from uv in/tmp
./tmp
should be empty.What version of Home Assistant Core has the issue?
container from 2024.10.4 to 2025.1.0
What was the last working version of Home Assistant Core?
N/A
What type of installation are you running?
Home Assistant Container
Integration causing the issue
N/A
Link to integration documentation on our website
No response
Diagnostics information
Check the image by:
this will show something like:
This lock file doesn't cause directly an issue, but lock files should be removed if not required anymore, this may cause other issues in the future. UV should not leave back a lock-file if running successful.
And it already causes issues for users running the container as non-root as this file is owned by root. I know this is unsupported, but just hint for those many users doing so.
Example YAML snippet
N/A
Anything in the logs that might be useful for us?
No response
Additional information
Workaround if you run in an issue with the lock file. Mount an empty dir as
/tmp
into the container.The text was updated successfully, but these errors were encountered: