Ubuntu

[ubuntu] docker를 이용한 iSpy 호스팅 방법

전감자(◔◡◔) 2024. 10. 18. 15:22
  • ubuntu docker 설치
sudo apt update
sudo apt install [docker.io](<http://docker.io/>)
  • docker image download
sudo docker search ispy // docker image 검색
sudo docker pull doitandbedone/ispyagentdvr 
  • iSpy Agent DVR 컨테이너 실행
sudo docker run -d --name ispy-agentdvr -p 8090:8090 -v /opt/ispy-agentdvr/config:/agent/Media -v /opt/ispy-agentdvr/recordings:/agent/RecordedFiles dockerspy/ispyagentdvr

-p : 호스트의 8090 포트를 컨테이너의 8090 포트에 맵핑

-d : 백그라운드에서 실행

-v : /opt/ispy-agentdvr/config:/agent/Media: 설정 파일을 저장할 경로를 지정합니다.

-v: /opt/ispy-agentdvr/recordings:/agent/RecordedFiles: 녹화된 파일을 저장할 경로를 지정

(호스트 시스템 디렉토를 docker 컨테이너 디렉토리에 마운트) 두 시스템 간에 파일과 데이터를 공유하도록 함

sudo docker stop ispy-agentdvr