mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-17 06:48:51 +00:00
agent: support bind mounts between containers
This feature supports creating bind mounts directly between containers through annotations. Fixes: #6715 Signed-off-by: HanZiyao <h56983577@126.com>
This commit is contained in:
@@ -89,6 +89,10 @@ message CreateContainerRequest {
|
||||
// The agent would receive an OCI spec with PID namespace cleared
|
||||
// out altogether and not just the pid ns path.
|
||||
bool sandbox_pidns = 7;
|
||||
|
||||
// This field is used to declare a set of shared mount points
|
||||
// that support cross-container sharing of mount objects.
|
||||
repeated SharedMount shared_mounts = 8;
|
||||
}
|
||||
|
||||
message StartContainerRequest {
|
||||
@@ -444,6 +448,23 @@ message FSGroup {
|
||||
types.FSGroupChangePolicy group_change_policy = 3;
|
||||
}
|
||||
|
||||
// SharedMount declares a set of shared mount points that support
|
||||
// cross-container sharing of mount objects.
|
||||
message SharedMount {
|
||||
// Name is used to identify a pair of shared mount points.
|
||||
string name = 1;
|
||||
// Src_ctr is used to specify the name of the source container.
|
||||
string src_ctr = 2;
|
||||
// Src_path is used to specify the path of the mount point. If the path doesn't
|
||||
// exist in the rootfs, it will be created.
|
||||
string src_path = 3;
|
||||
// Dst_ctr is used to specify the name of the destination container.
|
||||
string dst_ctr = 4;
|
||||
// Dst_path is used to specify the path of the mount point. If the path doesn't
|
||||
// exist in the rootfs, it will be created.
|
||||
string dst_path = 5;
|
||||
}
|
||||
|
||||
// Storage represents both the rootfs of the container, and any volume that
|
||||
// could have been defined through the Mount list of the OCI specification.
|
||||
message Storage {
|
||||
|
Reference in New Issue
Block a user