Skip to content

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);