docker-rust icon indicating copy to clipboard operation
docker-rust copied to clipboard

Start an existing container

Open abh1nav opened this issue 11 years ago • 0 comments

Example request:

POST /containers/(id)/start HTTP/1.1
Content-Type: application/json

{
     "Binds":["/tmp:/tmp"],
     "LxcConf":{"lxc.utsname":"docker"},
     "PortBindings":{ "22/tcp": [{ "HostPort": "11022" }] },
     "PublishAllPorts":false,
     "Privileged":false,
     "Dns": ["8.8.8.8"],
     "VolumesFrom": ["parent", "other:ro"]
}

Example response:

HTTP/1.1 204 No Content
Content-Type: text/plain

Json Parameters:

  • hostConfig – the container's host configuration (optional)

Status Codes:

  • 204 – no error
  • 404 – no such container
  • 500 – server error

abh1nav avatar Jun 15 '14 18:06 abh1nav