diff --git a/web/Modules/Docker/DockerContainerApi.php b/web/Modules/Docker/DockerContainerApi.php index badd01a9..9bf62f26 100644 --- a/web/Modules/Docker/DockerContainerApi.php +++ b/web/Modules/Docker/DockerContainerApi.php @@ -59,7 +59,7 @@ public function run() { $commandId = rand(10000, 99999); - $shellFileContent = 'docker run -it --network=host --name ' . $this->name . ' '; + $shellFileContent = 'docker run --name ' . $this->name . ' '; if (!empty($this->port)) { $shellFileContent .= ' -p ' . $this->externalPort . ':' . $this->port . ' '; @@ -80,8 +80,6 @@ public function run() $shellFileContent .= PHP_EOL . 'rm -f /tmp/docker-run-container-'.$commandId.'.sh'; - // dd($shellFileContent); - file_put_contents('/tmp/docker-run-container-'.$commandId.'.sh', $shellFileContent); $output = shell_exec('bash /tmp/docker-run-container-'.$commandId.'.sh');