Skip to content

Commit

Permalink
wasmedge: add support for rootfs files.
Browse files Browse the repository at this point in the history
Enable WasmEdge modules to access the container filesystem. This
includes:

  * all the files on the container image
  * /proc filesystem
  * /sys filesysten
  * parts of /dev filesystem

Signed-off-by: Ismo Puustinen <[email protected]>
  • Loading branch information
ipuustin committed Aug 2, 2023
1 parent c89099f commit ed7d60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/containerd-shim-wasmedge/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl WasmEdgeExecutor {
wasi_module.initialize(
Some(args.iter().map(|s| s as &str).collect()),
Some(envs.iter().map(|s| s as &str).collect()),
None,
Some(vec!["/:/"]), // map the container root filesystem to be available to the WASI module
);
let vm = vm
.register_module_from_file("main", cmd)
Expand Down

0 comments on commit ed7d60f

Please sign in to comment.