lizrice / containers-from-scratch

Writing a container in a few lines of Go code, as seen at DockerCon 2017 and on O'Reilly Safari

Home Page:http://lizrice.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How does the /proc mounting work?

sreyan32 opened this issue · comments

When you are using the following syscall:

must(syscall.Mount("proc", "proc", "proc", 0, ""))

Does that mean you are mounting the existing /proc to the new location or does that mean you are creating a new /proc?

This creates a new mount (of type proc) at the /proc location (in the "container"'s filesystem). Does that help?