From bd39ee28621ac340e2ba67833bc6282888e89f0f Mon Sep 17 00:00:00 2001 From: stevleibelt Date: Thu, 1 Feb 2024 18:04:42 +0100 Subject: [PATCH] Fix issue that adb can not find any attached device --- docker-compose.yml | 2 ++ run.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 40a10a3..54efe1d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,8 @@ services: php-cli: image: php:8.2-apache + privileged: true restart: unless-stopped volumes: - .:/var/www/html + - /dev/bus/usb:/dev/bus/usb diff --git a/run.sh b/run.sh index 4782742..39df21e 100755 --- a/run.sh +++ b/run.sh @@ -65,6 +65,10 @@ function _start () { _stop _build + if command -v adb &> /dev/null; + then + adb kill-server + fi docker compose up -d }