ContainerConfigHostConfig

edit
Docker host config

Properties

edit
binds (array[string], required)
Volume bindings for the container.
cpu_period (integer as int32)
The length of a CPU period in microsecond
extra_hosts (array[string], required)
Ports that are exposed by the container.
network_mode (string)
Sets the networking mode for the container.
port_bindings (map[string,array[PortBinding]], required)
Map of ports that should be exposed on the host.
privileged (boolean, required)
List of environment variables on the form KEY=value
restart_policy (RestartPolicy)
Docker behavior to apply when a container exits

Example

edit
{
   "binds" : [
      "string"
   ],
   "cpu_period" : 0,
   "extra_hosts" : [
      "string"
   ],
   "network_mode" : "string",
   "port_bindings" : {
      "some_property" : [
         {
            "host_ip" : "string",
            "host_port" : "string"
         }
      ]
   },
   "privileged" : true,
   "restart_policy" : {
      "maximum_retry_count" : 0,
      "name" : "string"
   }
}