mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Mount config for creating a container
This commit is contained in:
33
types/dockerode/index.d.ts
vendored
33
types/dockerode/index.d.ts
vendored
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user