Skip to content

Commit

Permalink
shim: Fix description of cwd and arguments given to the shim process …
Browse files Browse the repository at this point in the history
…(#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 <[email protected]>
  • Loading branch information
dlespiau authored and crosbymichael committed Aug 26, 2016
1 parent ab90816 commit d77bc40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions containerd-shim/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ type controlMessage struct {
// 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.
//
// the cwd of the shim should be the bundle for the container. Arg1 should be the path
// to the state directory where the shim can locate fifos and other information.
// the cwd of the shim should be the path to the state directory where the shim
// can locate fifos and other information.
// Arg0: id of the container
// Arg1: bundle path
// Arg2: runtime binary
func main() {
flag.Parse()
cwd, err := os.Getwd()
Expand Down

0 comments on commit d77bc40

Please sign in to comment.