Closed kekoav closed 5 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.66. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
I've founds some problems with how runc is embedded.
Background
The embedded runc is copied to a random
/tmp
file on every build invocation. The PATH is then updated to allow this runc to be used by buildkit.The following features require runc to be on the path: build, solve, diskusage, prune.
The Bugs
/tmp
every time a build is invoked. This is an unexpected and inefficient way to create temp files for the embedded runc. This can be observed simply by watching the /tmp folder grow after successive builds.du
andprune
do not work.creating worker opt failed: failed to find runc binary
This is because only the build command creates the temporary file.Proposed Solutions
I expect I'll be able to fix these issues and submit a PR, but would like any discussion as I do.