Skip to content

Commit 746b9cb

Browse files
committed
Remove deprecated HostConfig parameter from containerStart()
The HostConfig was removed with Docker Engine API v1.24 (Docker v1.12) and has been deprecated since at least Docker v1.6. Pass the HostConfig to `containerCreate()` instead.
1 parent 66bdc29 commit 746b9cb

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/Client.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,20 +531,18 @@ public function containerResize($container, $w, $h)
531531
* Start the container id
532532
*
533533
* @param string $container container ID
534-
* @param array $config (optional) start config (see link)
535534
* @return PromiseInterface Promise<null>
536535
* @link https://docs.docker.com/engine/api/v1.40/#operation/ContainerStart
537536
*/
538-
public function containerStart($container, $config = array())
537+
public function containerStart($container)
539538
{
540-
return $this->postJson(
539+
return $this->browser->post(
541540
$this->uri->expand(
542541
'/containers/{container}/start',
543542
array(
544543
'container' => $container
545544
)
546-
),
547-
$config
545+
)
548546
)->then(array($this->parser, 'expectEmpty'));
549547
}
550548

0 commit comments

Comments
 (0)