Skip to content

Commit

Permalink
Merge pull request #569 from ChengyuZhu6/guest-pull
Browse files Browse the repository at this point in the history
misc: add daemon_mode option to guest pull config
  • Loading branch information
imeoer authored Dec 15, 2023
2 parents b42e3f5 + af40ded commit 0397a1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions misc/snapshotter/config-coco-guest-pulling.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version = 1

# Snapshotter's own home directory where it stores and creates necessary resources
root = "/var/lib/containerd-nydus"

# The snapshotter's GRPC server socket, containerd will connect to plugin on this socket
address = "/run/containerd-nydus/containerd-nydus-grpc.sock"
# No nydusd daemon needed
daemon_mode = "none"

[daemon]
# Enable proxy mode
fs_driver = "proxy"

[snapshot]
# Insert Kata volume information to `Mount.Options`
enable_kata_volume = true
enable_kata_volume = true
1 change: 0 additions & 1 deletion misc/snapshotter/config-coco-host-sharing.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

version = 1
# Snapshotter's own home directory where it stores and creates necessary resources
root = "/var/lib/containerd-nydus"
Expand Down
4 changes: 3 additions & 1 deletion misc/snapshotter/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version = 1
root = "/var/lib/containerd-nydus"
# The snapshotter's GRPC server socket, containerd will connect to plugin on this socket
address = "/run/containerd-nydus/containerd-nydus-grpc.sock"
# The nydus daemon mode can be one of the following options: multiple, dedicated, shared, or none.
# If `daemon_mode` option is not specified, the default value is multiple.
daemon_mode = "dedicated"
# Whether snapshotter should try to clean up resources when it is closed
cleanup_on_close = false
Expand Down Expand Up @@ -129,4 +131,4 @@ max_concurrent_proc = 0
# - "image_block": generate a raw block disk image with tarfs for an image
# - "layer_block_with_verity": generate a raw block disk image with tarfs for a layer with dm-verity info
# - "image_block_with_verity": generate a raw block disk image with tarfs for an image with dm-verity info
export_mode = ""
export_mode = ""

0 comments on commit 0397a1f

Please sign in to comment.