Unplug usb webcam from Docker container and plug back in does not work

Camera model
Logitech

What is the problem?
I want to be able to unplug the webcam when I am not running the printer and plug it back in when I want to start using the printer without having to reboot the Docker container. However, the Docker container does not reattach to the camera because the camera is mounted to /dev/video1 instead of /dev/video0 when plugged back in. I suspect this is because Octoprint keeps video0 mounted when it is unplugged. How can I work around this? Or can it be fixed in the Octoprint program?

What did you already try to solve it?

Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)

No logs exist for /var/log/webcamd.log and nothing about video in octoprint.log

Additional information about your setup (OctoPrint version, OctoPi version, ...)

Running OctoPrint 1.8.6 on Docker with the following compose file:

version: '3.7'
services:
  octoprint:
    image: octoprint/octoprint:latest
    environment: 
      - ENABLE_MJPG_STREAMER=true
    volumes:
      - octoprint:/octoprint
      - /dev:/dev
    ports:
      - 9090:80
    device_cgroup_rules: 
      - "c 81:* rmw"  # usb webcams
      - "c 188:* rmw"  # usb to serial converters
      
volumes:
  octoprint: