Why php-fpm from official Docker image doesn't work for me? <p>I try to run a new container from <code>php:fpm</code>:</p> <p><code>docker run --name fpmtest -d -p 80:9000 php:fpm</code></p> <p>By default, it exposes port 9000 in its <a href="https://github.com/docker-library/php/blob/32887c1de338d0ad582393b5f1dafd292334423f/5.6/fpm/Dockerfile" rel="nofollow">Dockerfile</a>.</p> <p>Then I log in into container and create index.html file:</p> <pre><code>$ docker exec -i -t fpmtest bash root@2fb39dd6a40b:/var/www/html# echo "Hello, World!" &gt; index.html </code></pre> <p>And inside the container I try to get this content with <code>curl</code>:</p> <pre><code># curl localhost:9000 curl: (56) Recv failure: Connection reset by peer </code></pre> <p>Outside the container I get another error:</p> <pre><code>$ curl localhost curl: (52) Empty reply from server </code></pre>