Docker and php-cli
<p>I have installed <em>PHP 7</em> (php-fpm and php-cli) and my app is working fine with new <em>PHP</em>, but tests (<strong>phpunit</strong>) don't because some extensions aren't updated yet.</p>

<p>So I'm thinking to use/create some docker container with <em>PHP 5.6</em> that would 
replace my system's (host) <em>php-cli</em>.</p>

<p>For example, if I build container called <code>php56</code> from <em>Dockerfile</em> that looks like this:</p>

<pre><code>FROM ubuntu:15.10
RUN  apt-get -y update &amp;&amp; apt-get install -y php5-cli
ENTRYPOINT ["php"]
</code></pre>

<p>and run:</p>

<pre><code>sudo docker run -it php56 -v
</code></pre>

<p>I'm getting version info from <strong>Docker</strong> container, so docker's <em>php-cli</em> 5.6 is working. So I wan't to put <code>docker run</code> command in</p>

<pre><code>/usr/bin/php
</code></pre>

<p>so that host use <em>php-cli</em> from docker container. (then <em>php -v</em> would give me <em>PHP 5.6</em> info not <em>PHP 7.0</em> version info)</p>

<p>It's not best example, but I hope that you guys will understand what I'm trying to do. If it's not possible to solve it like this, please recommend me other solution.</p>