How to run docker newman command with newman-reporter-htmlextra using local collection, environment and testdata file

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

docker run -it -w /app -v "${HOST_DIR}:/app" "$HOST_DIR/collection:/tmp/collection" -v "$HOST_DIR/testData:/tmp/testdata" -v "$HOST_DIR/environment:/tmp/environment" -t postman/newman:alpine run "/tmp/collection/stella.collection.json" --reporters="cli,htmlextra" --reporter-html-export="report.html" -d "/tmp/testdata/stella.json" --environment="/tmp/environment/postman_stella_dev.json" --globals="/tmp/environment/postman_globals.json"

I got this error
docker: invalid reference format: repository name must be lowercase.

I don’t know a great deal about Docker so hopefully someone else can jump in with some information but --reporter-html-export=“report.html” should be --reporter-htmlextra-export=“report.html”.

thanks Dannydainton, I got it work now
I got another question which I open another thread

docker run -v “(pwd)"/Report:/tmp/report -v "(pwd)”/TestData:/tmp/testdata -v “(pwd)"/Collection:/tmp/collection -v "(pwd)”/environment:/tmp/environment --entrypoint /bin/sh postman/newman:alpine -c "npm i -g newman-reporter-htmlextra; newman run /tmp/collection/stella.collection.json -e /tmp/environment/postman_stella_dev.json -g /tmp/environment/postman_globals.json -d /tmp/testdata/stella.json --reporters=“cli,htmlextra” --reporter-htmlextra-export /tmp/report/report.html