Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mparker17/docker-fastboot
Use Docker to run the Android Fastboot tool.
https://github.com/mparker17/docker-fastboot
Last synced: 4 days ago
JSON representation
Use Docker to run the Android Fastboot tool.
- Host: GitHub
- URL: https://github.com/mparker17/docker-fastboot
- Owner: mparker17
- License: bsd-2-clause
- Created: 2015-07-06T23:53:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T02:31:08.000Z (over 5 years ago)
- Last Synced: 2023-03-30T05:26:36.378Z (over 1 year ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/mparker17/fastboot/
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-fastboot
Use Docker to run the Android Fastboot tool.
# Set up
1. Clone this repository:
git clone --recursive https://github.com/mparker17/docker-fastboot.git
cd docker-fastboot/2. Build an image:
docker build -t fastboot .
# Use
1. Run fastboot.
Replace `$subcommand` with the fastboot sub-command you want to run.docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot $subcommand
For example, to list connected devices:
docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot devices
You can leave out `$subcommand` to run `fastboot help`:
docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot
Passing `-v $PWD:/fastboot` maps the current directory to `/fastboot` in the container, so you can access files in the current directory.
Note the working directory is `/fastboot` by default, so you can refer to files in the current directory using relative paths:docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot fastboot update ./update.img
# Debugging
If you run into problems, you can run a shell in the container with:
docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot --entrypoint /bin/bash fastboot
To run a root shell, add `-u root`:
docker run --rm -ti --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/fastboot --entrypoint /bin/bash -u root fastboot
For more information, see [the Docker run reference](https://docs.docker.com/reference/run/).
# Notes
This has only been tested on a Linux system. If you're using something like boot2docker, your USB devices might not be properly mapped.