title: Docker exec on all running containers
body: <p>I am running several docker containers running on my server, and need to exec a git pull for a repository that is on all of them.</p>
  
  <p>I have tried using this:</p>
  
  <pre><code>docker exec $(docker ps -q) bash -c "cd /var/www/html &amp;&amp; git pull"
  </code></pre>
  
  <p>but it errors out with this:</p>
  
  <pre><code>OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"606a1083d0be\": executable file not found in $PATH": unknown
  </code></pre>
  
  <p>It worked at one point, but then suddenly stopped working for no apparent reason (I didn't change any docker configuration)</p>
  
  <p>Note: the output of <code>docker ps -q</code> is only container ids:</p>
  
  <pre><code>511c76a25dcc
  995bd453c467
  </code></pre>