Interface: IDockerHttpConnectionOptions
The options of buildDockerHttpConnectionOptions: a daemon reached over plain HTTP at host and port, with the headers, the timeout and the API version of IDockerConnectionOptions (its protocol is replaced by 'http').
Extends
Omit<IDockerConnectionOptions,"socketPath"|"sshAuthAgent">
Properties
ca?
optionalca?:string|string[] |Buffer<ArrayBufferLike> |Buffer<ArrayBufferLike>[]
The certificates of the authorities trusted for the daemon's HTTPS certificate: their PEM contents, not their file paths.
Default
undefined (the authorities of Node.js)Inherited from
cert?
optionalcert?:string|string[] |Buffer<ArrayBufferLike> |Buffer<ArrayBufferLike>[]
The client certificate of the HTTPS connections (its PEM contents).
Default
undefinedInherited from
headers?
optionalheaders?:object
The HTTP headers added to every request sent to the daemon.
Index Signature
[name: string]: string
Default
undefinedInherited from
IDockerConnectionOptions.headers
host
host:
string
The host name or IP address of the daemon.
Overrides
key?
optionalkey?:string|string[] |Buffer<ArrayBufferLike> |Buffer<ArrayBufferLike>[] |IDockerKeyObject[]
The private key of cert (its PEM contents), or keys with their passphrases.
Default
undefinedInherited from
port
port:
string|number
The TCP port of the daemon (2375 by convention).
Overrides
protocol?
optionalprotocol?:"https"|"http"|"ssh"
How host is reached: 'http', 'https', or 'ssh' (which needs the optional package ssh2, and the Docker CLI on the remote host). Ignored with socketPath.
Default
'https' when ca, cert and key are all given, 'http' otherwise
Inherited from
IDockerConnectionOptions.protocol
timeout?
optionaltimeout?:number
How long a request may stay idle (no data received), in milliseconds, before it fails; the streams (followed logs) included.
Default
undefined (no timeout)Inherited from
IDockerConnectionOptions.timeout
username?
optionalusername?:string
The user of the SSH connections.
Default
undefinedInherited from
IDockerConnectionOptions.username
version?
optionalversion?:string
The version of the Docker Engine API used by the requests ('1.47' or 'v1.47').
Default
undefined (negotiated with the daemon)