title: Unable to run shell command with docker?
body: <p>I have installed docker on Ubuntu 14.04. Now when i am trying to create one test job in docker, i am getting the below error:</p>
  <blockquote>
  <p><strong>$ sample_job=$(docker run -d busybox /bin/sh -c “while true; do echo</strong>
  <strong>Docker; sleep 1; done”)</strong></p>
  <p>-bash: command substitution: line 228: syntax error near unexpected token `do'</p>
  <p>-bash: command substitution: line 228: `docker run -d busybox /bin/sh -c “while true; do echo Docker; sleep 1; done”)'</p>
  </blockquote>
  <p>I am following the below blog for starting with docker: <a href="http://blog.flux7.com/blogs/docker/docker-tutorial-series-part-2-the-15-commands" rel="nofollow noreferrer">http://blog.flux7.com/blogs/docker/docker-tutorial-series-part-2-the-15-commands</a></p>
  <p>Could someone help me in resolving this issue.
  Thanks!!</p>