# How to generate har file by using mitmproxy docker?

**URL:** <https://discourse.mitmproxy.org/t/how-to-generate-har-file-by-using-mitmproxy-docker/1644>\
**Category:** Uncategorized\
**Created:** [August 23, 2019, 5:00pm UTC](https://discourse.mitmproxy.org/t/how-to-generate-har-file-by-using-mitmproxy-docker/1644 "2019-08-23T17:00:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fasty23](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@fasty23](https://discourse.mitmproxy.org/u/fasty23)\
**Post date:** [August 23, 2019, 5:00pm UTC](https://discourse.mitmproxy.org/t/how-to-generate-har-file-by-using-mitmproxy-docker/1644/1 "2019-08-23T17:00:54Z")

</div>

I’m using this command but I got error:  
docker run --rm -it -p 8080:8080 -v $PWD:/tmp mitmproxy/mitmproxy mitmdump -s ./har\_dump.py --set hardump=/dump.har

Error:  
/usr/bin/mitmdump: No such script

The question is how can I change the command to have successful running?

In the other hand:  
I Modified the docker and created Dockerfile and entrypoint.sh and works fine but I was wondering if I could use mitmproxy docker directly via command line like the command above?
