openvinotoolkit / docker_ci

The framework to generate a Dockerfile, build, test, and deploy a docker image with OpenVINO™ toolkit.
Apache License 2.0
58 stars 63 forks source link

`sudo` required to run demos #240

Open miccio-dk opened 2 years ago

miccio-dk commented 2 years ago

As per title, sudo is required by the demo scripts and it's not installed by default on the container. This can be easily fixed with apt-get update && apt-get -y install sudo.

dtrawins commented 2 years ago

our direction is to drop the dependency on the sudo in the container. Demos should not require it. In new images from the coming releases, it should be improved. The container could be executed in any security context so using sudo wouldn't be convenient and secure. If there are any operation in the container which requires privileged access, it is better to start the container with --user root parameter.