Add section for state
dir
Closes #1286 Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
f2ee71c56c
commit
b1eb1103a8
39
docs/ops.md
39
docs/ops.md
@ -113,6 +113,45 @@ containerd itself does not actually have any persistent data that it needs to st
|
|||||||
`state` will be used to store any type of ephemeral data.
|
`state` will be used to store any type of ephemeral data.
|
||||||
Sockets, pids, runtime state, mount points, and other plugin data that must not persist between reboots are stored in this location.
|
Sockets, pids, runtime state, mount points, and other plugin data that must not persist between reboots are stored in this location.
|
||||||
|
|
||||||
|
```
|
||||||
|
/run/containerd
|
||||||
|
├── containerd.sock
|
||||||
|
├── debug.sock
|
||||||
|
├── io.containerd.runtime.v1.linux
|
||||||
|
│ └── default
|
||||||
|
│ └── redis
|
||||||
|
│ ├── config.json
|
||||||
|
│ ├── init.pid
|
||||||
|
│ ├── log.json
|
||||||
|
│ └── rootfs
|
||||||
|
│ ├── bin
|
||||||
|
│ ├── data
|
||||||
|
│ ├── dev
|
||||||
|
│ ├── etc
|
||||||
|
│ ├── home
|
||||||
|
│ ├── lib
|
||||||
|
│ ├── media
|
||||||
|
│ ├── mnt
|
||||||
|
│ ├── proc
|
||||||
|
│ ├── root
|
||||||
|
│ ├── run
|
||||||
|
│ ├── sbin
|
||||||
|
│ ├── srv
|
||||||
|
│ ├── sys
|
||||||
|
│ ├── tmp
|
||||||
|
│ ├── usr
|
||||||
|
│ └── var
|
||||||
|
└── runc
|
||||||
|
└── default
|
||||||
|
└── redis
|
||||||
|
└── state.json
|
||||||
|
```
|
||||||
|
|
||||||
|
Both the `root` and `state` directories are namespaced for plugins.
|
||||||
|
Both directories are an implementation detail of containerd and its plugins.
|
||||||
|
They should not be tampered with as corruption and bugs can and will happen.
|
||||||
|
External apps reading or watching changes in these directories have been know to cause `EBUSY` and stale file handles when containerd and/or its plugins try to cleanup resources.
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# persistent data location
|
# persistent data location
|
||||||
root = "/var/lib/containerd"
|
root = "/var/lib/containerd"
|
||||||
|
Loading…
Reference in New Issue
Block a user