浏览代码

docker_build.sh: Docker requires access to hosts devices (#5063)

* docker_build.sh: Docker requires access to hosts devices

This also runs the container interactively which allows the user to
interupt the build with Ctrl-C.

* docker_build.sh: Mount /dev via $usb_args instead
Robin Hallabro-Kokko 6 年之前
父节点
当前提交
e73587cfd0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      util/docker_build.sh

+ 1 - 1
util/docker_build.sh

@@ -35,7 +35,7 @@ else
 fi
 fi
 if [ -n "$target" ]; then
 if [ -n "$target" ]; then
 	if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then
 	if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then
-		usb_args="--privileged -v /dev/bus/usb:/dev/bus/usb"
+		usb_args="--privileged -v /dev:/dev"
 	else
 	else
 		echo "Error: target requires docker-machine to work on your platform" >&2
 		echo "Error: target requires docker-machine to work on your platform" >&2
 		echo "See http://gw.tnode.com/docker/docker-machine-with-usb-support-on-windows-macos" >&2
 		echo "See http://gw.tnode.com/docker/docker-machine-with-usb-support-on-windows-macos" >&2