统一命令结构.
Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
parent
af57601500
commit
b6f4c9d119
|
@ -94,7 +94,7 @@ docker run -it -p <host ip:port><container port> -v <host dir>:<container dir> <
|
|||
# 运行某镜像,为之创建容器,随机映射主机端口和容器端口,指定容器名称,赋予 privileged 权限,并将宿主机的某目录挂载到容器的对应目录下
|
||||
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 -it --net=<bridge/host/container:container name or id/none> -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
|
||||
# 映射 Nvidia GPU
|
||||
|
|
Loading…
Reference in New Issue