2,599
edits
Efernandez (talk | contribs) |
Efernandez (talk | contribs) |
||
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: | ||
< | <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 | ||
</ | </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: | ||
< | <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 | ||
</ | </pre> | ||
===As a standalone application=== | ===As a standalone application=== |