Skip to content

Commit

Permalink
Catch undocumented case when network already exists
Browse files Browse the repository at this point in the history
Signed-off-by: szaimen <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Jan 21, 2022
1 parent ee124bf commit 9823e64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion php/src/Docker/DockerActionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,10 @@ private function ConnectContainerIdToNetwork(string $id)
]
);
} catch (RequestException $e) {
throw $e;
// 409 is undocumented and gets thrown if the network already exists.
if ($e->getCode() !== 409) {
throw $e;
}
}

$url = $this->BuildApiUrl(
Expand Down

0 comments on commit 9823e64

Please sign in to comment.