mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-11 10:29:42 +00:00
Code reuse on inspecting a docker container
This commit is contained in:
@@ -167,13 +167,7 @@ class Container
|
||||
$this->process = new Process($params);
|
||||
$this->process->mustRun();
|
||||
|
||||
$inspect = new Process(['docker', 'inspect', $this->id]);
|
||||
$inspect->mustRun();
|
||||
|
||||
/** @var ContainerInspectSingleNetwork|ContainerInspectMultipleNetworks $inspectedData */
|
||||
$inspectedData = json_decode($inspect->getOutput(), true, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
$this->inspectedData = $inspectedData;
|
||||
$this->inspectedData = $this->getContainerInspect($this->id);
|
||||
|
||||
Registry::add($this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user