Error while cleaning images from docker
<p>When I run</p>

<pre><code>docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
</code></pre>

<p>from the accepted answer to <a href="https://stackoverflow.com/q/32723111/5931467">this</a> question I sometimes get</p>

<pre><code>docker: "rmi" requires a minimum of 1 argument.
</code></pre>

<p>am I doing something wrong? How can I prevent this from happening?</p>