Mount config for creating a container

This commit is contained in:
Pascal Sthamer
2018-12-12 14:05:43 +01:00
committed by GitHub
parent ba36ee1631
commit 84efa71066

View File

@@ -762,6 +762,38 @@ declare namespace Dockerode {
[key: string]: EndpointSettings;
}
type MountType =
| "bind"
| "volume"
| "tmpfs";
type MountConsistency =
| "default"
| "consistent"
| "cached"
| "delegated";
type MountPropagation =
| "private"
| "rprivate"
| "shared"
| "rshared"
| "slave"
| "rslave";
interface MountSettings {
Target: string;
Source: string;
Type: MountType;
ReadOnly ?: boolean;
Consistency ?: MountConsistency;
BindOptions ?: {
Propagation: MountPropagation;
};
}
type MountConfig = MountSettings[];
interface ContainerCreateOptions {
name?: string;
Hostname?: string;
@@ -818,6 +850,7 @@ declare namespace Dockerode {
DnsSearch?: string[];
ExtraHosts?: any;
VolumesFrom?: string[];
Mounts?: MountConfig;
CapAdd?: string[];
CapDrop?: string[];
GroupAdd?: string[];