title: Docker: Entrypoint with arguments and quotes
body: <p>I'm trying to create a Docker image with an entrypoint.sh and pass arguments when I run the Docker, the issue is when I want to use arguments with double quotes.</p>
  
  <p>I search in many places, also I know is more a Bash question and how the arguments are expanded by the double quotes, but maybe someone has an idea how to avoid this.</p>
  
  <p>My <code>Dockerfile</code>:</p>
  
  <pre><code>FROM centos:7
  
  COPY    entrypoint.sh /entrypoint.sh
  ENTRYPOINT ["/entrypoint.sh"]
  </code></pre>
  
  <p>My <code>entrypoint.sh</code>:</p>
  
  <pre><code>#!/bin/bash
  
  command --display=true "$@"
  </code></pre>
  
  <p>Running the Docker:</p>
  
  <pre><code>docker run -ti docker-image:latest --driver="kernel-4.0 kernel-4.1"
  </code></pre>
  
  <p>Expected behaviour:</p>
  
  <pre><code>command --display=true --driver="kernel-4.0 kernel-4.1"
  </code></pre>
  
  <p>Actual behaviour:</p>
  
  <pre><code>command --display=true --driver=kernel-4.0 kernel-4.1
  </code></pre>
  
  <p>I tried escaping the double quotes but nothing.</p>