- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Multiple shell scripts included in the OpenVino 2021.2 distribution do not adapt appropriately for installation in Docker where sudo is not available (or required). Below is a non-exhaustive list, I would imagine there are others
- install.sh
- install_prequisites.sh
- demo_squeezenet_download_convert_run.sh
- demo_security_barrier_camera.sh
Currently, users have to manually edit your scripts to remove the sudo usage which is tedious and prone to error. For best practice, you should detect whether the environment is inside Docker and if so, omit the calls to sudo
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Klinke_Addison,
Thank you for reaching out and reporting the bug. We will investigate this and provide updates soon. Meanwhile, which specific scripts are you referring that you remove the sudo usage?
Regards,
Aznie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The minimal set of scripts recommended by Intel for installation and verification are listed in my original post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FYI - developers are planning to remove sudo from demo scripts in one of the future OpenVINO releases and move all installing logic to different scripts in order to avoid such cases.
Thanks for reporting this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Klinke_Addison,
We are currently investigating this and will update you with further information soon. By the way, thank you for reporting the issue to us.
Regards,
Aznie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Klinke_Addison,
We have verified these with our developer and this is expected behavior due to docker security policy and we cannot sudo by default. I would suggest you run the docker in root privilege, then install sudo.
- $ docker run -it -u 0 --rm openvino/ubuntu18_dev:latest
- $ apt update && apt install sudo
- $ demo_security_barrier_camera.sh
Or else you could try these ways:
$ docker run -it -u 0 --rm openvino/ubuntu18_dev:latest /bin/bash -c "apt update && apt install sudo && deployment_tools/demo/demo_security_barrier_camera.sh -d CPU -sample-options -no_show"
Regards,
Aznie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Klinke_Addison,
Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored.
Regards,
Aznie
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page