Docker exec adb devices doesn't show connected Android device. (Appium)

As the title says, connected Android device is not recognized when running docker exec -it (container name) adb devices. On the other hand, it is listed when using the regular adb devices command. Connection is through USB.

I even tried running the adb kill-server to then start the server through docker but the result is the same. Any help would be appreciated.

Since a container is an isolated process you won’t see everything that you can see on the host, including devices. You can mount devices if you want to and if you know the name.

However, if you are using Docker Desktop, that will not work, only with Docker CE