Files
Craig Loewenanddocs-builder 7ba8496e8c Added WSLc API docs (#40922)
* Updated doc structure

---------

Co-authored-by: docs-builder <docs-builder@localhost>
2026-06-26 21:28:07 +00:00

463 B

ContainerNamedVolume

Maps a session-managed named VHD volume into the container.

public sealed class ContainerNamedVolume
{
    public ContainerNamedVolume(string name, string containerPath, bool readOnly);

    public string Name { get; set; }
    public string ContainerPath { get; set; }
    public bool ReadOnly { get; set; }
}

Example:

var namedVolume = new ContainerNamedVolume("cache", "/var/cache/app", readOnly: false);