title: How to run docker commands using a docker file
body: <p>I've certain basic docker command which i run in my terminal. Now what i want is to use all the basic docker commands into one docker file and then, build that docker file.</p>
  
  <p>For eg.
  Consider two docker files
  File - Docker1, Docker2</p>
  
  <p>Docker1 contains list of commands to run</p>
  
  <p>And inside Docker2 i want to build Docker1 and run it as well</p>
  
  <p>Docker2:(Consider the scenario with demo code)</p>
  
  <pre><code>FROM ubuntu:16.04
  MAINTAINER abc@gmail.com
  WORKDIR /home/docker_test/
  RUN docker build -t Docker1 .
  RUN docker run -it Docker1
  </code></pre>
  
  <p>I want to do something like this. But it is throwing - docker: error response from daemon oci runtime create failed container_linux.go</p>
  
  <p>How can I do this? Where am I going wrong</p>
  
  <p>P.S - I'm new to Docker</p>