title: docker create | Error response from daemon: No command specified
body: <p>Attached there is my <code>Dockerfile</code>. My intention is to use the following command:</p>
  
  <pre><code>docker build -t fbprophet . &amp;&amp; \
  docker create --name=awslambda fbprophet &amp;&amp; \
  docker cp awslambda:/var/task/venv/lib/python3.7/site-packages/lambdatest.zip . \
  docker rm awslambda
  </code></pre>
  
  <p>However, I always receive this error here:</p>
  
  <blockquote>
    <p>Error response from daemon: No command specified</p>
  </blockquote>
  
  <p>When running these commands here, it works. I have to run it in different shells so the container doesn't stop running before my export is done.</p>
  
  <pre><code>docker build -t fbprophet . &amp;&amp; docker container rm awslambda &amp;&amp; docker run -it --name=awslambda fbprophet bash
  docker cp awslambda:/var/task/venv/lib/python3.7/site-packages/lambdatest.zip .
  </code></pre>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM lambci/lambda:build-python3.7
  
  ENV VIRTUAL_ENV=/venv
  RUN python3 -m venv $VIRTUAL_ENV
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
  
  COPY requirements.txt .
  RUN pip install --upgrade pip
  RUN pip install -r requirements.txt
  
  WORKDIR /var/task/venv/lib/python3.7/site-packages
  
  COPY lambda_function.py .
  COPY .lambdaignore .
  
  RUN echo "Package size: $(du -sh | cut -f1)"
  
  RUN zip -9qr lambdatest.zip *
  RUN cat .lambdaignore | xargs zip -9qr /var/task/lambdatest.zip * -x
  </code></pre>