File tree Expand file tree Collapse file tree 4 files changed +56
-2
lines changed Expand file tree Collapse file tree 4 files changed +56
-2
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,12 @@ version = 2
55 [proxy_plugins .stargz ]
66 type = " snapshot"
77 address = " /run/containerd-stargz-grpc/containerd-stargz-grpc.sock"
8+ [proxy_plugins .stargz .exports ]
9+ root = " /var/lib/containerd-stargz-grpc/"
10+ enable_remote_snapshot_annotations = " true"
11+ [[plugins ."io .containerd .transfer .v1 .local" .unpack_config ]]
12+ platform = " linux"
13+ snapshotter = " overlayfs"
14+ [[plugins ."io .containerd .transfer .v1 .local" .unpack_config ]]
15+ platform = " linux"
16+ snapshotter = " stargz"
Original file line number Diff line number Diff line change @@ -5,8 +5,26 @@ version = 2
55 [proxy_plugins .stargz ]
66 type = " snapshot"
77 address = " /run/containerd-stargz-grpc/containerd-stargz-grpc.sock"
8+ [proxy_plugins .stargz .exports ]
9+ root = " /var/lib/containerd-stargz-grpc/"
10+ enable_remote_snapshot_annotations = " true"
811
912# Enable soci snapshotter
1013 [proxy_plugins .soci ]
1114 type = " snapshot"
1215 address = " /run/soci-snapshotter-grpc/soci-snapshotter-grpc.sock"
16+ [proxy_plugins .soci .exports ]
17+ root = " /var/lib/soci-snapshotter-grpc"
18+ enable_remote_snapshot_annotations = " true"
19+
20+ [[plugins ."io .containerd .transfer .v1 .local" .unpack_config ]]
21+ platform = " linux"
22+ snapshotter = " overlayfs"
23+
24+ [[plugins ."io .containerd .transfer .v1 .local" .unpack_config ]]
25+ platform = " linux"
26+ snapshotter = " soci"
27+
28+ [[plugins ."io .containerd .transfer .v1 .local" .unpack_config ]]
29+ platform = " linux"
30+ snapshotter = " stargz"
Original file line number Diff line number Diff line change 5353 [proxy_plugins."stargz"]
5454 type = "snapshot"
5555 address = "/run/user/$( id -u) /containerd-stargz-grpc/containerd-stargz-grpc.sock"
56+ [proxy_plugins.stargz.exports]
57+ root = "/home/rootless/.local/share/containerd-stargz-grpc/"
58+ enable_remote_snapshot_annotations = "true"
59+ [[plugins."io.containerd.transfer.v1.local".unpack_config]]
60+ platform = "linux"
61+ snapshotter = "overlayfs"
62+ [[plugins."io.containerd.transfer.v1.local".unpack_config]]
63+ platform = "linux"
64+ snapshotter = "stargz"
5665EOF
5766 systemctl --user restart containerd.service
5867 containerd-rootless-setuptool.sh -- install-ipfs --init --offline # offline ipfs daemon for testing
6473 cd /go/src/github.com/containerd/nerdctl
6574 # We also lose the PATH (and SendEnv=PATH would require sshd config changes)
6675 exec env PATH=" /usr/local/go/bin:$PATH " " $@ "
67- fi
76+ fi
Original file line number Diff line number Diff line change @@ -404,6 +404,15 @@ cmd_entrypoint_install_fuse_overlayfs() {
404404 [proxy_plugins."fuse-overlayfs"]
405405 type = "snapshot"
406406 address = "${XDG_RUNTIME_DIR} /containerd-fuse-overlayfs.sock"
407+ [proxy_plugins."fuse-overlayfs".exports]
408+ root = "${XDG_DATA_HOME} /containerd-fuse-overlayfs/"
409+ enable_remote_snapshot_annotations = "true"
410+ [[plugins."io.containerd.transfer.v1.local".unpack_config]]
411+ platform = "linux"
412+ snapshotter = "fuse-overlayfs"
413+ [[plugins."io.containerd.transfer.v1.local".unpack_config]]
414+ platform = "linux"
415+ snapshotter = "overlayfs"
407416 ### END ###
408417 EOT
409418 INFO " Set \` export CONTAINERD_SNAPSHOTTER=\" fuse-overlayfs\"\` to use the fuse-overlayfs snapshotter."
@@ -449,6 +458,15 @@ cmd_entrypoint_install_stargz() {
449458 [proxy_plugins."stargz"]
450459 type = "snapshot"
451460 address = "${XDG_RUNTIME_DIR} /containerd-stargz-grpc/containerd-stargz-grpc.sock"
461+ [proxy_plugins.stargz.exports]
462+ root = "${XDG_DATA_HOME} /containerd-stargz-grpc/"
463+ enable_remote_snapshot_annotations = "true"
464+ [[plugins."io.containerd.transfer.v1.local".unpack_config]]
465+ platform = "linux"
466+ snapshotter = "stargz"
467+ [[plugins."io.containerd.transfer.v1.local".unpack_config]]
468+ platform = "linux"
469+ snapshotter = "overlayfs"
452470 ### END ###
453471 EOT
454472 INFO " Set \` export CONTAINERD_SNAPSHOTTER=\" stargz\"\` to use the stargz snapshotter."
652670
653671# main
654672shift
655- " cmd_entrypoint_${command} " " $@ "
673+ " cmd_entrypoint_${command} " " $@ "
You can’t perform that action at this time.
0 commit comments