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.

  • Can't login to docker with aws
  • ELK Stack using Docker on EC2 Container Service
  • EC2 Docker Consul clustering
  • Strange behavior of celery workers in ecs docker container
  • Copy multiple files in docker with cp
  • Accessing RDS from within a Docker container not getting through security group?
  • 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

    We have created docker images in ubuntu VM 16.04


  • Which device Docker Container writing to?
  • Automated pulling from gitolite repo within docker container
  • Docker web-app: bash session
  • Trouble running docker registry in insecure mode on Ubuntu 16.04
  • Bash parse docker status to check if local image is up to date
  • How to setting Core file size in Docker container?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.