Variable: buildDockerHttpConnectionOptions
constbuildDockerHttpConnectionOptions:ComponentOptionsBuilder<IDockerHttpConnectionOptions>
Build the component options of a Docker connected to a daemon over plain HTTP (dockerd -H tcp://0.0.0.0:2375), to register it in the components of an application. The connection is neither encrypted nor authenticated: keep it to trusted networks. The options are validated when the component is created, not here.
Param
options
The host and port of the daemon, with the headers, the timeout and the API version; the protocol is set to 'http'.
Returns
The component options ({class: Docker, protocol: 'http', ...options}).
Example
typescript
import {Application} from 'lakutata'
import {buildDockerHttpConnectionOptions} from 'lakutata/com/docker'
Application.run(() => ({
id: 'docker.app',
name: 'Docker',
components: {
docker: buildDockerHttpConnectionOptions({host: '192.168.1.10', port: 2375})
}
}))