docker-compose --project-name "dev_" build php
Building php
Step 1 : FROM php:5.6-fpm
---> a0e78ea4a88b
Step 2 : RUN apt-get update && apt-get install -y git libgearman-dev libmemcached-dev libmcrypt-dev libfreetype6-dev libjpeg62-turbo-dev libpng12-dev libmagickwand-dev libmagickcore-dev
---> Running in 8181163c0190
Ign http://security.debian.org jessie/updates InRelease
Err http://security.debian.org jessie/updates Release.gpg
Connection failed
Ign http://security.debian.org jessie/updates Release
Err http://security.debian.org jessie/updates/main amd64 Packages
Err http://security.debian.org jessie/updates/main amd64 Packages
Err http://security.debian.org jessie/updates/main amd64 Packages
Err http://security.debian.org jessie/updates/main amd64 Packages
Err http://security.debian.org jessie/updates/main amd64 Packages
Connection failed
Err http://httpredir.debian.org jessie InRelease
Err http://httpredir.debian.org jessie-updates InRelease
Err http://httpredir.debian.org jessie Release.gpg
Could not resolve 'httpredir.debian.org'
Err http://httpredir.debian.org jessie-updates Release.gpg
Could not resolve 'httpredir.debian.org'
Reading package lists...
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/InRelease
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/InRelease
W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Connection failed
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-amd64/Packages Connection failed
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/Release.gpg Could not resolve 'httpredir.debian.org'
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-updates/Release.gpg Could not resolve 'httpredir.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package git
E: Unable to locate package libgearman-dev
E: Unable to locate package libmemcached-dev
E: Unable to locate package libmcrypt-dev
E: Unable to locate package libfreetype6-dev
E: Unable to locate package libjpeg62-turbo-dev
E: Unable to locate package libpng12-dev
E: Unable to locate package libmagickwand-dev
E: Unable to locate package libmagickcore-dev
ERROR: Service 'php' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y git libgearman-dev libmemcached-dev libmcrypt-dev libfreetype6-dev libjpeg62-turbo-dev libpng12-dev libmagickwand-dev libmagickcore-dev' returned a non-zero code: 100