{"id":20685505,"url":"https://github.com/yas-sim/openvino-docker-ssh","last_synced_at":"2026-01-30T06:35:14.587Z","repository":{"id":185235188,"uuid":"443541545","full_name":"yas-sim/openvino-docker-ssh","owner":"yas-sim","description":"Dockerfile to enable ssh and X11 redirect for developer convenience. You can start OpenVINO development in 5min.","archived":false,"fork":false,"pushed_at":"2022-03-24T02:15:14.000Z","size":25,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T08:45:56.782Z","etag":null,"topics":["ai","deep-learning","docker","dockerfile","graphics","inference","intel","openvino","ssh","x11docker","xwindow"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yas-sim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-01-01T13:11:45.000Z","updated_at":"2022-03-01T16:04:44.000Z","dependencies_parsed_at":"2023-08-01T07:09:29.619Z","dependency_job_id":null,"html_url":"https://github.com/yas-sim/openvino-docker-ssh","commit_stats":null,"previous_names":["yas-sim/openvino-docker-ssh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yas-sim/openvino-docker-ssh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-docker-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-docker-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-docker-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-docker-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yas-sim","download_url":"https://codeload.github.com/yas-sim/openvino-docker-ssh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yas-sim%2Fopenvino-docker-ssh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28906663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T04:02:34.702Z","status":"ssl_error","status_checked_at":"2026-01-30T04:02:33.562Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","deep-learning","docker","dockerfile","graphics","inference","intel","openvino","ssh","x11docker","xwindow"],"created_at":"2024-11-16T22:27:38.811Z","updated_at":"2026-01-30T06:35:14.545Z","avatar_url":"https://github.com/yas-sim.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSH and X11 forwarding enabled OpenVINO Docker image\n\n## Summary\n- Provides `Dockerfile` for OpenVINO developers\n- Enable SSH for easy development\n- Enable X11 redirect to display graphics on the host environment\n- Setup some useful aliases for easy access to the OpenVINO tools\n- Setup and start OpenVINO development in 5 min\n\n* Added Dockerfile for *OpenVINO 2022.1*. (`./dockerfile_openvino2022.1/Dockerfile`)\n\n## Description\nIntel provides several types of OpenVINO Docker images but those images doesn't enable SSH. This project provides a `Dockerfile` which enables SSH. Developers can connect to the container with SSH client, and use X11 redirect to display graphics on the host machine.  \n\n\n\n## How to build a Docker image\n```sh\ndocker build -t openvino_dev_ssh .\n```\n\n## How to start a Docker container\nContainer will start and resides as a background process (daemon). SSH server will up and run, and wait for remote connection on port 22.\n```sh\ndocker run -d --rm -p 22:22 --name ov -it openvino_dev_ssh\n```\n**Note:** To enable X11 redirect on Ubuntu system, user needs to add `-e DISPLAY=${DISPLAY} -v /tmp/.X11-unix/:/tmp/.X11-unix/` options. Refer to 'How to enable X11 redirect (Host=Ubuntu)' section for details.\n\n**Linux users only**\n- Enable integrated GPU.  \n```sh\ndocker run -d --rm -p 22:22 --name ov -it --device=/dev/dri openvino_dev_ssh\n```\n- Enable VPU (Myriad-X, Neural Compute Stick 2:NCS2)\n```sh\ndocker run -d --rm -p 22:22 --name ov -it --device=/dev/ion -v /var/tmp:/var/tmp openvino_dev_ssh\n```\n- Please refer to the OpenVINO official web documentation for details.  \n[Run the Docker* Image for GPU](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_docker_linux.html#run-the-docker-image-for-gpu)  \n[Use a Docker* Image for Intel® Neural Compute Stick 2](https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_docker_linux.html#use-a-docker-image-for-intel-neural-compute-stick-2)\n## How to connect to the container with ssh\nYou can use any ssh client program to connect to the container.  \nNote: password is '`ovuser`'.  \n```sh\nssh ovuser@localhost\n```\n\n## How to stop the container\n**Caution:** The contents in the container will be lost when you stop the container if you put '`--rm`' option at the time when you start the container.\n```sh\ndocker stop ov\n```\n\n## How to enable X11 redirect (Host=Windows)\n\n### Install Xserver software\nWin10/11 users need to install and start a X server program such as `VcXsrv`.  \n\n### Disable access control in Xserver on host\nXservers denies remote access in default. You need to disable this access control to make the Xserver accepts the drawing request from remote programs.  \nWindows user must refer to the Xserver document and disable the access control.  \n'`VcXsrv`' has `Disable access control` check box in the dialog box which appears when you start the `XLaunch` app.    \n![Xlaunch](resources/xlaunch.png)  \n\n### Set `DISPLAY` environment in the container to redirect X11 drawing to the host.\n```sh\n(container) export DISPLAY=192.168.1.21:0.0\nNote: 192.168.1.21 is the host IP address\n```\n- Now you can run the X11 apps in the container\n\n## How to enable X11 redirect (Host=Ubuntu)\n\n### Disable access control in Xserver on host\nXservers denies remote access in default. You need to disable this access control to make the Xserver accepts the drawing request from remote programs.  \n```sh\nxhost +\n```\n\n### Share host X authentication info and DISPLAY environment variable\nAdd `-e DISPLAY=${DISPLAY} -v /tmp/.X11-unix/:/tmp/.X11-unix/` to `docker run` command line to share the host X authentication information with the container.\n\n```sh\ndocker run -d --rm -p 22:22 --name ov -it -e DISPLAY=${DISPLAY} -v /tmp/.X11-unix/:/tmp/.X11-unix/ openvino_dev_ssh\n```\n- Now you can run the X11 apps in the container\n\n\n## Building OpenVINO sample apps in the container  \n\n- Build C++ sample apps  \nBuilt binaries can be found in `~/inference_engine_cpp_samples_build/intel64/Release/`\n```sh\ncd ${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/samples/cpp/\n./build_samples.sh \n```\n- Build C sample apps  \nBuilt binaries can be found in `~/inference_engine_c_samples_build/intel64/Release/`\n```sh\ncd ${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/samples/c/\n./build_samples.sh \n```\n-  Copy Python demos to the user directory  \n```sh\ncp -r ${INTEL_OPENVINO_DIR}/deployment_tools/inference_engine/samples/python/ ~/python_demos\n```\n\n## Running OpenVINO sample apps\n- Image classification sample app  \n\nCopy input image files.\n```sh\ncd ~\ncp $INTEL_OPENVINO_DIR/deployment_tools/demo/car.png .\ncp $INTEL_OPENVINO_DIR/deployment_tools/demo/car_1.bmp .\n```\nDownload a DL model with model downloader.\n```sh\nomz_downloader --name googlenet-v1-tf\nomz_converter --name googlenet-v1-tf --precisions FP16\n```\nRun a C++ image classification sample app.\n```sh\ninference_engine_cpp_samples_build/intel64/Release/classification_sample_async -m public/googlenet-v1-tf/FP16/googlenet-v1-tf.xml -i car.png \n```\nRun a Python image classification sample app.\n```sh\npython3 python_demos/hello_classification/hello_classification.py -m public/googlenet-v1-tf/FP16/googlenet-v1-tf.xml -i car.png \n\n```\n\n## Using webCam from the apps in the container (Linux only) \nLinux can share USB webCam device with the container.\nAdd `--device=/dev/video0` to `docker run` command line.\n\n\n## Others\nThe `Dockerfile` setup some aliases to the OpenVINO tools for developers convenience. Developers can access to the tools without remembering the long-and-deep path to the command.\n|alias/command|tool|description|\n|---|---|---|\n|omz_downloader|OMZ* model downloader|Download OMZ models by specifying the model name|\n|omz_converter|OMZ* model converter|Convert downloaded OMZ models in framework format into OpenVINO IR model format|\n|omz_quantizer|OMZ* model quantizer|Quantize OMZ IR models into INT8 precision|\n|omz_info_dumper|OMZ* model info dumper|Display OMZ model information|\n|benchmark_app|Benchmark app|Run IR model benchmark with various options|\n|mo.py|Model Optimizer|Convert and optimize DL models in framework format into OpenVINO IR format|\n|accuracy_check|Accuracy Checker|Check inference accuracy of an OpenVINO IR model|\n|pot|Post-training Optimization Tool|Quantize IR model into INT8|\n\nNote: OMZ = Intel Open Model Zoo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Fopenvino-docker-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyas-sim%2Fopenvino-docker-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyas-sim%2Fopenvino-docker-ssh/lists"}