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

**URL:** <https://community.postman.com/t/how-to-run-docker-newman-command-with-newman-reporter-htmlextra-using-local-collection-environment-and-testdata-file/5807>\
**Category:** Help Hub\
**Created:** [June 7, 2019, 8:55am UTC](https://community.postman.com/t/how-to-run-docker-newman-command-with-newman-reporter-htmlextra-using-local-collection-environment-and-testdata-file/5807 "2019-06-07T08:55:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tohlaymui35](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tohlaymui35](https://community.postman.com/u/tohlaymui35)\
**Post date:** [June 7, 2019, 8:55am UTC](https://community.postman.com/t/how-to-run-docker-newman-command-with-newman-reporter-htmlextra-using-local-collection-environment-and-testdata-file/5807/1 "2019-06-07T08:55:48Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, 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](https://github.com/postmanlabs/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](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

`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.`

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [June 7, 2019, 9:49am UTC](https://community.postman.com/t/how-to-run-docker-newman-command-with-newman-reporter-htmlextra-using-local-collection-environment-and-testdata-file/5807/2 "2019-06-07T09:49:54Z")

</div>

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”`.

---

<div class="post-metadata">

**Author:** ![tohlaymui35](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tohlaymui35](https://community.postman.com/u/tohlaymui35)\
**Post date:** [June 7, 2019, 10:02am UTC](https://community.postman.com/t/how-to-run-docker-newman-command-with-newman-reporter-htmlextra-using-local-collection-environment-and-testdata-file/5807/3 "2019-06-07T10:02:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tohlaymui35](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tohlaymui35](https://community.postman.com/u/tohlaymui35)\
**Post date:** [June 7, 2019, 10:02am UTC](https://community.postman.com/t/how-to-run-docker-newman-command-with-newman-reporter-htmlextra-using-local-collection-environment-and-testdata-file/5807/4 "2019-06-07T10:02:58Z")

</div>

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
