Docker exec Requires minimum of 2 arguments
<p>I am using a shell script on Linux in order to execute some Docker commands : </p>

<pre><code>docker exec -t -i test1 passwd
...
docker exec -t -i test2 passwd
</code></pre>

<p>And on the second exec command I receive the following error : </p>

<pre><code>docker: "exec" requires a minimum of 2 arguments.
</code></pre>

<p>What am I doing wrong, or what am I missing?</p>

<p>Thank you in advance.</p>