I have a docker image that records some online class using a chrome headless browser. Here is the command:
docker run --rm -v "$(pwd)/downloads:/opt/down