diff --git a/packages/nextcloud/test/helper.dart b/packages/nextcloud/test/helper.dart index 17abb043..f369abcf 100644 --- a/packages/nextcloud/test/helper.dart +++ b/packages/nextcloud/test/helper.dart @@ -155,11 +155,12 @@ Future getDockerContainer(final DockerImage image) async { 'run', '--rm', '-d', - '-p', - '$port:80', - '--add-host', - 'host.docker.internal:host-gateway', + '--net', + 'host', image, + 'php', + '-S', + '0.0.0.0:$port', ], ); // 125 means the docker run command itself has failed which indicated the port is already used diff --git a/tool/dev.sh b/tool/dev.sh index f6ef40e5..7a7f984f 100755 --- a/tool/dev.sh +++ b/tool/dev.sh @@ -5,4 +5,4 @@ cd "$(dirname "$0")/.." ./tool/build-dev-container.sh echo "Running development instance on http://localhost. To access it in an Android Emulator use http://10.0.2.2" -docker run --rm -v nextcloud-neon-dev:/usr/src/nextcloud -v nextcloud-neon-dev:/var/www/html -p "80:80" --add-host host.docker.internal:host-gateway nextcloud-neon-dev +docker run --rm -v nextcloud-neon-dev:/usr/src/nextcloud -v nextcloud-neon-dev:/var/www/html -p "80:80" --net="host" nextcloud-neon-dev