mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-03-18 10:44:10 +00:00
docs: Use more accurate wording for /dev hostPath behavior
I got lazy when I first added this section in5c21b1f, so updating the language to specify that any non-regular host file (under /dev) qualifies, not just devices. This matches the actual code, see:330bfff4be/src/runtime/virtcontainers/mount.go (L57-L83)Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
committed by
Steve Horsman
parent
b147cb1319
commit
68e67d7f8a
@@ -187,9 +187,10 @@ different compared to `runc` containers:
|
||||
into the guest and exposes it directly to the container.
|
||||
|
||||
**Mounting guest devices**: When the source path of a hostPath volume is
|
||||
under `/dev`, and the path either corresponds to a host device or is not
|
||||
accessible by the Kata shim, the Kata agent bind mounts the source path
|
||||
directly from the *guest* filesystem into the container.
|
||||
under `/dev` (or `/dev` itself), and the path corresponds to a
|
||||
non-regular file (i.e., a device, directory, or any other special file)
|
||||
or is not accessible by the Kata shim, the Kata agent bind mounts the
|
||||
source path directly from the *guest* filesystem into the container.
|
||||
|
||||
[runtime-config]: /src/runtime/README.md#configuration
|
||||
[k8s-hostpath]: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
|
||||
|
||||
Reference in New Issue
Block a user