feat: add containers.<name>.maxLayers
option
#872
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR allows multi-layered Docker images described at https://github.com/nlewo/nix2container/tree/9d7f33ef0058f4df4c0912025f43c758a3289d76#:~:text=maxLayers%20(defaults%20to%201)%3A%20the%20maximum%20number%20of%20layers%20to%20create.%20This%20is%20based%20on%20the%20store%20path%20%22popularity%22%20as%20described%20in%20this%20blog%20post.%20Note%20this%20is%20applied%20on%20the%20image%20layers%20and%20not%20on%20layers%20added%20with%20the%20buildImage.layers%20attribute.