允许容器通过 adb 连接 android 设备.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
16d6f7e9f6
commit
0223601d04
|
@ -95,6 +95,8 @@ docker run -it -p <host ip:port><container port> -v <host dir>:<container dir> <
|
||||||
docker run -it -P --name=<a container name> --privileged -v <host dir>:<container dir> <image name/id> /bin/bash
|
docker run -it -P --name=<a container name> --privileged -v <host dir>:<container dir> <image name/id> /bin/bash
|
||||||
# 运行某镜像,为之创建容器,设置网络参数,并将宿主机的某目录挂载到容器的对应目录下
|
# 运行某镜像,为之创建容器,设置网络参数,并将宿主机的某目录挂载到容器的对应目录下
|
||||||
docker run --net=<bridge/host/container:container name or id/none> -it -v <host dir>:<container dir> <image name/id> /bin/bash
|
docker run --net=<bridge/host/container:container name or id/none> -it -v <host dir>:<container dir> <image name/id> /bin/bash
|
||||||
|
# 允许容器访问 usb 总线,允许容器通过 adb 连接 android 设备
|
||||||
|
docker run -it -P --name=<a container name> --privileged -v /dev/bus/usb:/dev/bus/usb <image name/id> /bin/bash
|
||||||
# 查看正在运行的容器
|
# 查看正在运行的容器
|
||||||
docker ps
|
docker ps
|
||||||
# 提交针对某容器的修改,将其保存为镜像
|
# 提交针对某容器的修改,将其保存为镜像
|
||||||
|
|
Loading…
Reference in New Issue