Volume configuration VolumeCreateOptions

interface VolumeCreateOptions {
    Driver?: string;
    DriverOpts?: {
        [key: string]: string;
    };
    Labels?: {
        [key: string]: string;
    };
    Name?: string;
}

Properties

Driver?: string

Name of the volume driver to use.

DriverOpts?: {
    [key: string]: string;
}

A mapping of driver options and values. These options are passed directly to the driver and are driver specific.

Labels?: {
    [key: string]: string;
}

User-defined key/value metadata.

Name?: string

The new volume's name. If not specified, Docker generates a name.