ContainersEntryOptionsContainerConfig

edit

Container config. Roughly corresponds to Docker container config

Properties

edit
env (array[string], required)

List of environment variables on the form KEY=value

Example: "DB=localhost:4567"

host_config (ContainerConfigHostConfig)
Docker host config

Example

edit
{
   "env" : [
      "string"
   ],
   "host_config" : {
      "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"
      }
   }
}