Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5764 Discussions

[Bug] Docker installation: sudo command not found

Klinke__Addison
Beginner
1,061 Views

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

0 Kudos
6 Replies
IntelSupport
Community Manager
895 Views

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


Klinke__Addison
Beginner
883 Views

The minimal set of scripts recommended by Intel for installation and verification are listed in my original post

Max_L_Intel
Moderator
708 Views

Hi Klinke__Addison

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.

IntelSupport
Community Manager
801 Views

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


IntelSupport
Community Manager
783 Views

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.

  1. $ docker run -it -u 0 --rm openvino/ubuntu18_dev:latest
  2. $ apt update && apt install sudo
  3. $ 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

 

IntelSupport
Community Manager
738 Views

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


Reply