diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index ba154c6e9ec..673a2f12864 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -476,6 +476,9 @@ public function CreateContainer(Container $container) : void { $requestBody['HostConfig']['CapAdd'] = $capAdds; } + // Disable arp spoofing + $requestBody['HostConfig']['CapDrop'] = ['NET_RAW']; + if ($container->isApparmorUnconfined()) { $requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"]; }