- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My docker run commands looks something like this (using 16.04):
sudo docker run -t -i -v /dev:/dev --privileged --net=host kwierman/movidius bash
I've tested with hello_ncs.py and it works fine. If I remove the --net=host however, I'll get "Error - Could not open NCS device" when running hello_ncs.py
. Why is this the case? I've also tried to apply the fix described here https://ncsforum.movidius.com/discussion/394/ncs-access-in-a-docker-container-in-virtualbox-on-mac-osx , but it doesn't seem to have any effect
Here's a more complete error log
Device 0 Address: 2 - VID/PID 03e7:2150
1
Starting wait for connect with 2000ms timeout
Found Address: 2 - VID/PID 03e7:2150
Found EP 0x81 : max packet size is 512 bytes
Found EP 0x01 : max packet size is 512 bytes
Found and opened device
Performing bulk write of 865724 bytes...
Successfully sent 865724 bytes of data in 98.785142 ms (8.357722 MB/s)
Boot successful, device address 2
Traceback (most recent call last):
File "streamer_ncs.py", line 39, in <module>
devHandle[devnum].OpenDevice()
File "/usr/local/lib/python3.5/dist-packages/mvnc/mvncapi.py", line 147, in OpenDevice
raise Exception(Status(status))
Exception: mvncStatus.ERROR
- Tags:
- Docker
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@bobthesheep Maybe this will help: https://ncsforum.movidius.com/discussion/comment/731/#Comment_731.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, thanks for the reply. I've already seen the thread you linked to. My question was more regarding why does it only work when we run the container in --net=host. What changed exactly? I've also had problem with line 609 of the installation script and have to run the 2 udev commands manually after. I currently have a project where I'm using multiple docker containers using a private network and won't work with --net=host.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page