Enable webcam in docker application and access thru AWS ECS

our requirement is , using docker we need to detect webcam from internet (amazon EC2)

using cv2 we are trying to detect the webcam from internet by leveraging on AWS ECS.

  • elastic-beanstalk docker app not updating upon deploy
  • Docker: Error starting container: Unable to load the AUFS module
  • Update a Docker Image on an EC2 Instance
  • How to deploy a Docker container on EC2 ECS from Docker Hub private repo?
  • Docker hiding IP of calling container [closed]
  • Graylog2 Docker unable to start
  • video_capture = cv2.VideoCapture(0)
    ret, frame = video_capture.read()
    

    we are not getting any error but no webcam is detected when we run it from AWS EC2.

    using the below command i executed the docker. still it is not working

    sudo docker run -d -p 5000:5000 --privileged -v /dev/video0:/dev/video0
    dockimage
    

    FYI:
    We have created docker images in ubuntu VM 16.04

    Thanks
    Avi

  • Docker clone private repo - Permission denied
  • How to import my db dump into mariadb on start?
  • Log doesn't save to file in docker environment
  • Docker do not release ports after stop and remove all container
  • Docker node flow-bin libelf.so.1 not found (gitlab ci)
  • Docker commit does't save changes
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.