mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-07 18:47:50 +00:00
miragesdk: start the calf using runc
`nested runc` unfortunately needs a lot of caps/privileged. The removal of `readonly: true` is also a bit unfortunate. Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
@@ -62,17 +62,16 @@ external dhcp_filter: unit -> string = "bpf_filter"
|
||||
|
||||
let t = Init.Pipe.v ()
|
||||
|
||||
(*
|
||||
let default_cmd = [
|
||||
"/calf/dhcp-client-calf"; "--net=3"; "--ctl=4"; "-vv";
|
||||
]
|
||||
|
||||
(*
|
||||
let default_cmd = [
|
||||
"/usr/bin/runc"; "run"; "--preserve-fds"; "2"; "--bundle"; "."; "calf
|
||||
"
|
||||
]
|
||||
*)
|
||||
|
||||
let default_cmd = [
|
||||
"/usr/bin/runc"; "run"; "--preserve-fds"; "2"; "--bundle"; "."; "calf"
|
||||
]
|
||||
|
||||
let read_cmd file =
|
||||
if Sys.file_exists file then
|
||||
let ic = open_in_bin file in
|
||||
|
||||
Reference in New Issue
Block a user