title: How to run -it with docker compose?
body: <p><code>docker run -idt ubuntu:16.04</code>, after that we can use <code>docker ps</code> to see the container starts.</p>
  <p>But if use docker compose as next and docker-compose up, we can see <code>docker ps</code> cannot find container, from <code>docker ps -a</code> we can see it exited.</p>
  <pre class="lang-yaml prettyprint-override"><code>version: '2'
  services:
    me:
      image: 'ubuntu:16.04'
  </code></pre>
  <p>Question: How we could realize <code>-idt</code> using docker compose?</p>