title: Execute for loop in docker container
body: <p>I use a docker container to perform a curl</p>
  
  <pre><code>docker run --rm --network=mynetwork tutum/curl for i in `seq 1 10`; do curl -s http://Url; done
  </code></pre>
  
  <p>But the output is <code>-bash: syntax error near unexpected token</code>do'`.
  How do I execute this in a proper way. I want to see the output without going inside the container or checking their logs.</p>
  
  <p>For example this works:</p>
  
  <pre><code>docker run --rm -d -it --network=mynetwork tutum/curl /bin/sh
  docker exec -it 4e8cb1e8c9fb bash
  root@4e8cb1e8c9fb:/# for i in `seq 1 20`; do curl http://Url; done
  curl: (6) Could not resolve host: url
  curl: (6) Could not resolve host: url
  curl: (6) Could not resolve host: url
  curl: (6) Could not resolve host: url
  curl: (6) Could not resolve host: url
  curl: (6) Could not resolve host: url
  ...
  </code></pre>