title: how to execute a python program (with args) that uses docker container?
body: <p>First off, I might have formulated the question inaccurately, feel free to modify if necessary.</p>
  <p>Although I am quite new to docker and all its stuff, yet somehow managed to create an image (<code>v2</code>) and a container (<code>cont</code>) on my Win 11 laptop. And I have a <em>demo.py</em> which requires an <em>.mp4</em> file as an arg.</p>
  <p>Now, if I want to run the <em>demo.py</em> file, <strong>1)</strong> I go to the project's folder (where <em>demo.py</em> lives), <strong>2)</strong> open cmd and <strong>3)</strong> run: <code>docker start -i cont</code>. This starts the container as:</p>
  <p><code>root:834b2342e24c:/project#</code></p>
  <p>Then, I should copy <strong>4)</strong> <em>my_video.mp4</em> from local project folder to container's <em>project/data</em> folder (with another cmd) as follows:</p>
  <p><code>docker cp data/my_video.mp4 cont:project/data/</code>.</p>
  <p>Then I run:  <strong>5)</strong> <code>python demo.py data/my_video.mp4</code>. After a while, it makes two files: <em>my_video_demo.mp4</em> and <em>my_video.json</em> in the data folder in the container. Similarly, I should copy them back to my local project folder: <strong>6)</strong></p>
  <p><code>docker cp cont:project/data/my_video_demo.mp4 data/</code>, <code>docker cp cont:project/data/my_video_demo.json data/</code></p>
  <p>Only then I can go to my local <em>project/data</em> folder and inspect the files.
  I want to be able to just run a particular command that does <strong>4)</strong> - <strong>6)</strong> all in one.
  I have read about <code>-v </code>  option where, in my case, it would be(?) <code>-v /data:project/data</code>, but I don't know how to proceed.</p>
  <p>Is it possible to do what I want? If everything is clear, I hope to get your support. Thank you.</p>