1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
# Internal data structure
## State dir
Common:
- `lock`
- `child_pid`
- `api.sock`
- `netns` (detached netns)
Network driver `slirp4netns`:
- `.s4nn.sock`
Port driver `builtin`:
- `.bp.sock`
- `.bp-ready.pipe`
## Parent-child communication
```mermaid
sequenceDiagram
Parent ->> Child: ParentHello
Child -->> Parent: ChildHello
Parent ->> Child: ParentInitIdmapCompleted
Child -->> Parent: ChildInitUserNSCompleted
Parent ->> Child: ParentInitNetworkDriverCompleted
Parent ->> Child: ParentInitPortDriverCompleted
```
|