-
Notifications
You must be signed in to change notification settings - Fork 793
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
devcontainer features are not cached #5243
Comments
@likan999 The command which you have pasted in description, does it produces build without layers or is it only happening when |
@flouthoc thanks for your quick response. I've attached the log file when I tried to re-run the command on remote server (but with
On OSX Docker Desktop the same |
A friendly reminder that this issue had no activity for 30 days. |
Can confirm that the same line is never cached for me.
|
I wonder if #5445 helps with this. |
#5445 does not appear to fix the issue.
|
Yup. Same for me. The feature layer is built from scratch. |
I have instead been using DevPod's implementation of the devcontainer specification and it does re-use the cache with a podman provider setup when doing a workspace rebuild/reset. That may be a possible trail to look into, just unsure at this point if the issue should be under buildah or the devcontainer extension/cli. I will test again with the latest version of the devcontainer extension/cli and podman as it has been a while since I used such setup. |
Description
When building devcontainer with features, Podman doesn't use the cached layers for features, which makes it very slow.
Steps to reproduce the issue:
Dev Containers: Add Dev Container Configuration Files...
, follow the steps to create a dev container. Make sure add some features when creating it. On my side, I chose 'Ubuntu', 'jammy' and then added 'Go' feature.Dev Containers: Rebuild Container
. And you will observe the layers are rebuilt again and not cached.I've tried on OSX with Docker Desktop, the same command (except it uses docker) is run and the layers are cached when rebuilding:
The above command is just for reference and will not run on your environment.
Describe the results you received:
The feature layer is not cached and needs a rebuild.
Describe the results you expected:
The feature layer should be cached and no rebuild is needed.
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: