-
Notifications
You must be signed in to change notification settings - Fork 717
Refactor image management to use transfer service #4583
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -404,6 +404,15 @@ cmd_entrypoint_install_fuse_overlayfs() { | |
| [proxy_plugins."fuse-overlayfs"] | ||
| type = "snapshot" | ||
| address = "${XDG_RUNTIME_DIR}/containerd-fuse-overlayfs.sock" | ||
| [proxy_plugins."fuse-overlayfs".exports] | ||
| root = "${XDG_DATA_HOME}/containerd-fuse-overlayfs/" | ||
| enable_remote_snapshot_annotations = "true" | ||
| [[plugins."io.containerd.transfer.v1.local".unpack_config]] | ||
| platform = "linux" | ||
| snapshotter = "fuse-overlayfs" | ||
| [[plugins."io.containerd.transfer.v1.local".unpack_config]] | ||
| platform = "linux" | ||
| snapshotter = "overlayfs" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a fan of complicating the config.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By default, it would be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This config is required to specify which snapshotter the transfer service should use when unpacking images. We define multiple unpack targets:
Without this, containerd defaults to basic unpacking and won't leverage stargz/soci snapshotters needed for lazy-pulling. And if we only configure stargz in unpack_config, then all images would be forced to use the stargz snapshotter during transfer/unpacking, even standard OCI images that don't support lazy-pulling. |
||
| ### END ### | ||
| EOT | ||
| INFO "Set \`export CONTAINERD_SNAPSHOTTER=\"fuse-overlayfs\"\` to use the fuse-overlayfs snapshotter." | ||
|
|
@@ -449,6 +458,15 @@ cmd_entrypoint_install_stargz() { | |
| [proxy_plugins."stargz"] | ||
| type = "snapshot" | ||
| address = "${XDG_RUNTIME_DIR}/containerd-stargz-grpc/containerd-stargz-grpc.sock" | ||
| [proxy_plugins.stargz.exports] | ||
| root = "${XDG_DATA_HOME}/containerd-stargz-grpc/" | ||
| enable_remote_snapshot_annotations = "true" | ||
| [[plugins."io.containerd.transfer.v1.local".unpack_config]] | ||
| platform = "linux" | ||
| snapshotter = "stargz" | ||
| [[plugins."io.containerd.transfer.v1.local".unpack_config]] | ||
| platform = "linux" | ||
| snapshotter = "overlayfs" | ||
| ### END ### | ||
| EOT | ||
| INFO "Set \`export CONTAINERD_SNAPSHOTTER=\"stargz\"\` to use the stargz snapshotter." | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if this config is not specified?
i.e., what happens with the default config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, it would be