-
Notifications
You must be signed in to change notification settings - Fork 691
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_run_and_commit
does not support incremental loading.
#1384
Comments
Hi @uri-canva thanks for creating this issue. I think this is just never been implemented for this rule. We would be happy to accept contributions to either implement this feature for container_run_and_commit or document better the limitation better in the readme. |
I have put up a PR to support incremental loading as input: #1439 Supporting intermediate format as output seems to be more complicated since The only API that is layer aware is the registry API: https://docs.docker.com/registry/spec/api/. It is possible to run either https://github.com/docker/distribution configured to use filesystem storage, then symlink / copy the existing layers where it expects them to be, or a simple http server that implements enough of the spec to handle image pushes, that pretends to have the previous layers. Unfortunately this might require configuring the docker daemon to list localhost as an insecure registry, and hosting a local registry on mac or indows seems to get broken now and again: docker/for-mac#3611 docker/for-win#624 (it's not working for me on mac right now, I tested it by running the docker daemon in a VM). This all smells pretty bad, I'm considering avoiding |
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. |
This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?" |
Can this be reopened? I've updated my PR again: #1439 |
Thanks Uri for trying to fix this. |
container_run_and_commit
doesn't support incremental loading as output or input. I couldn't find out if it's because it was never implemented, or if it's a fundamental limitation due to having to interact withdocker save
. Even if it was due todocker save
, it doesn't explain why it doesn't support incremental loading as input, as incremental loading does load the image into docker, so it should be possible to run commands in it?Can this be clarified in the readme? https://github.com/bazelbuild/rules_docker/blob/b48dddfdad7764c6164701067c6e3736b8e707d7/docker/util/README.md
Related: #1281
The text was updated successfully, but these errors were encountered: