Skip to content
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

Preserving a failed build layer for debugging #1383

Closed
peterwaller-arm opened this issue Feb 28, 2020 · 2 comments
Closed

Preserving a failed build layer for debugging #1383

peterwaller-arm opened this issue Feb 28, 2020 · 2 comments

Comments

@peterwaller-arm
Copy link

Some builds of mine have layers doing compilation of large which can take a very long time. On failure, I would like to be able to drop into the container in order to debug it, rather than starting from scratch each time, or manually doing it with docker run.

Is this possible currently? I'm expecting to see a --keep-failed option or similar, but I did not find it.

Note that I'm using RUN --mount, and I need those cache mounts in place as well, so ideally the whole container should be preserved (e.g. tmpfs mounts). The image itself would be a start, but not sufficient to solve the whole problem.

@AkihiroSuda
Copy link
Member

duplicate: #1053
(My proposal: #1053 (comment) Workaround: #1053 (comment))

@AkihiroSuda
Copy link
Member

Let me close this to prevent the discussion from diverging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants