shim: Fix description of cwd and arguments given to the shim process (#307)
That comment didn't seem to match the reality and confused me a bit. The shim takes 3 arguments and the cwd is the containerd state directory. I'm guessing it's a left over from the containerd split. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
ab90816c41
commit
d77bc40d5c
1 changed files with 5 additions and 2 deletions
|
@ -25,8 +25,11 @@ type controlMessage struct {
|
||||||
// containerd-shim is a small shim that sits in front of a runtime implementation
|
// containerd-shim is a small shim that sits in front of a runtime implementation
|
||||||
// that allows it to be repartented to init and handle reattach from the caller.
|
// that allows it to be repartented to init and handle reattach from the caller.
|
||||||
//
|
//
|
||||||
// the cwd of the shim should be the bundle for the container. Arg1 should be the path
|
// the cwd of the shim should be the path to the state directory where the shim
|
||||||
// to the state directory where the shim can locate fifos and other information.
|
// can locate fifos and other information.
|
||||||
|
// Arg0: id of the container
|
||||||
|
// Arg1: bundle path
|
||||||
|
// Arg2: runtime binary
|
||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
cwd, err := os.Getwd()
|
cwd, err := os.Getwd()
|
||||||
|
|
Loading…
Reference in a new issue