Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6403 Discussions

[Bug] Docker installation: sudo command not found

Klinke__Addison
Beginner
2,494 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
Moderator
2,328 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


0 Kudos
Klinke__Addison
Beginner
2,316 Views

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

0 Kudos
Max_L_Intel
Moderator
2,141 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.

0 Kudos
IntelSupport
Moderator
2,234 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


0 Kudos
IntelSupport
Moderator
2,216 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

 

0 Kudos
IntelSupport
Moderator
2,171 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


0 Kudos
Reply