Jump to content

Metropolis Microservices/RidgeRun Services/PTZ: Difference between revisions

Line 89: Line 89:
Either you pulled the prebuilt image or you built your own, a docker container can be launched by running the following command:
Either you pulled the prebuilt image or you built your own, a docker container can be launched by running the following command:


<syntaxhighlight lang="bash">
<pre>
sudo docker run --runtime nvidia -it --privileged --net=host --ipc=host --name ptz-service  ridgerun/ptz-service:latest
sudo docker run --runtime nvidia -it --privileged --net=host --ipc=host --name ptz-service  ridgerun/ptz-service:latest
</syntaxhighlight>
</pre>


You can modify the name you want to give to your container with the option '''--name'''.
You can modify the name you want to give to your container with the option '''--name'''.
Line 97: Line 97:
Here we are creating a container called __ptz-service__ that will start the ptz-service application in the default address and port and use the default output resolution. If a different address, port, or output resolution has to be used, you can do it by running:
Here we are creating a container called __ptz-service__ that will start the ptz-service application in the default address and port and use the default output resolution. If a different address, port, or output resolution has to be used, you can do it by running:


<syntaxhighlight lang="bash">
<pre>
sudo docker run --runtime nvidia -it --privileged --net=host --ipc=host --name ptz-service  ridgerun/ptz-service:latest --host=HOST --port=PORT --ptz-window-size=PTZ_WINDOW_SIZE
sudo docker run --runtime nvidia -it --privileged --net=host --ipc=host --name ptz-service  ridgerun/ptz-service:latest --host=HOST --port=PORT --ptz-window-size=PTZ_WINDOW_SIZE
</syntaxhighlight>
</pre>


===As a standalone application===
===As a standalone application===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.