Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastboot can't see devices #14

Open
davemackintosh opened this issue Oct 13, 2018 · 1 comment
Open

fastboot can't see devices #14

davemackintosh opened this issue Oct 13, 2018 · 1 comment

Comments

@davemackintosh
Copy link

I love having adb in a docker image, this works great but I couldn't get fastboot to work.

This is my script (that is in my $PATH) to run fastboot

#!/bin/bash

docker run --name=adbd --rm -d --privileged -v /dev/bus/usb:/dev/bus/usb sorccu/adb &&
docker run --rm -ti --net container:adbd -v $HOME:/home/$USER/ sorccu/adb fastboot $@

I don't see devices but when I use the system installed version I do. Any ideas?

@andresmrm
Copy link

Had the same problem here. But then it worked via:

docker exec -ti adbd sh

So it maybe some kind of network error caused by running another container via docker run.


The complete list of commands:

docker run -d --privileged -v /dev/bus/usb:/dev/bus/usb --name adbd sorccu/adb
docker exec -ti adbd sh

And then, from inside the container:

fastboot devices

This also works:

docker exec -ti adbd fastboot devices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants