RemoteDockers v1.1.1 RemoteDockers.DockerHostConfig View Source
Link to this section Summary
Functions
Get HTTPoison default options with ssl if enabled
Build configuration with defaults
Build configuration with a specific hostname
Build configuration with specific hostname and port
Build configuration with SSL
Build configuration with hostname, port and SSL
Link to this section Functions
Get HTTPoison default options with ssl if enabled
Build configuration with defaults
default:
hostname: "localhost"
port: 2376
Example:
iex> DockerHostConfig.new()
%DockerHostConfig{hostname: "localhost", port: 2376}
Build configuration with a specific hostname
default:
port: 2376
Example:
iex> DockerHostConfig.new("192.168.99.100")
%DockerHostConfig{hostname: "192.168.99.100", port: 2376}
Build configuration with specific hostname and port
Example:
iex> DockerHostConfig.new("192.168.99.100", 2345)
%DockerHostConfig{hostname: "192.168.99.100", port: 2345}
Build configuration with SSL
default:
port: 2376
Example:
iex> DockerHostConfig.new("192.168.99.100", "cert.pem", "key.pem")
%DockerHostConfig{
hostname: "192.168.99.100",
port: 2376,
ssl: [
certfile: "cert.pem",
keyfile: "key.pem"
]
}