From 2733f115ecc65c42e2b01f19022f3b3a5f0bd558 Mon Sep 17 00:00:00 2001 From: szaimen Date: Fri, 21 Jan 2022 14:36:43 +0100 Subject: [PATCH] fix adding a container to a network Signed-off-by: szaimen --- php/src/Docker/DockerActionManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index e9838740..493a95f0 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -456,7 +456,10 @@ class DockerActionManager ] ); } catch (RequestException $e) { - throw $e; + // 403 is undocumented and gets thrown if a specific container is already part of a network + if ($e->getCode() !== 403) { + throw $e; + } } }