Docker Community Forums

Share and learn in the Docker community.

Dockerfile builds on Linux, not on Mac (boot2docker)

I have a Dockerfile which builds fine on Arch Linux but not on my Mac running the Docker Toolbox. Here is my Dockerfile:

FROM dmp1ce/php-fpm-drupal:5

RUN apt-get -yq update
RUN apt-get -yq install --no-install-recommends rsync

And here is my output when trying to build on my mac:

Sending build context to Docker daemon 32.77 kB
Step 1/3 : FROM dmp1ce/php-fpm-drupal:5
 ---> 344f55ec4f00
Step 2/3 : RUN apt-get -yq update
 ---> Using cache
 ---> f1612d1f6398
Step 3/3 : RUN apt-get -yq install --no-install-recommends rsync
 ---> Running in fa2049741171
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  base-files gcc-4.9-base libacl1 libattr1 libc6 libgcc1 libpopt0 lsb-base
  mawk multiarch-support
Suggested packages:
  glibc-doc debconf debconf-2.0 locales openssh-client openssh-server
The following NEW packages will be installed:
  base-files gcc-4.9-base libacl1 libattr1 libc6 libgcc1 libpopt0 lsb-base
  mawk multiarch-support rsync
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 5725 kB of archives.
After this operation, 12.7 MB of additional disk space will be used.
Get:1 jessie/main gcc-4.9-base amd64 4.9.2-10 [160 kB]
Get:2 jessie/main multiarch-support amd64 2.19-18+deb8u7 [180 kB]
Get:3 jessie/main libgcc1 amd64 1:4.9.2-10 [39.5 kB]
Get:4 jessie/main libc6 amd64 2.19-18+deb8u7 [4665 kB]
Get:5 jessie/main mawk amd64 1.3.3-17 [90.8 kB]
Get:6 jessie/main base-files amd64 8+deb8u7 [78.1 kB]
Get:7 jessie/main libpopt0 amd64 1.16-10 [49.2 kB]
Get:8 jessie/main libattr1 amd64 1:2.4.47-2 [18.3 kB]
Get:9 jessie/main libacl1 amd64 2.2.52-2 [27.9 kB]
Get:10 jessie/main lsb-base all 4.1+Debian13+nmu1 [26.7 kB]
Get:11 jessie/main rsync amd64 3.1.1-3 [390 kB]
e[91mdebconf: delaying package configuration, since apt-utils is not installed
e[0mFetched 5725 kB in 2s (2163 kB/s)
Selecting previously unselected package gcc-4.9-base:amd64.
(Reading database ...
(Reading database ... 25%
(Reading database ... 50%
(Reading database ... 75%
(Reading database ... 100%
(Reading database ... 12 files and directories currently installed.)
Preparing to unpack .../gcc-4.9-base_4.9.2-10_amd64.deb ...
Unpacking gcc-4.9-base:amd64 (4.9.2-10) ...
Selecting previously unselected package multiarch-support.
Preparing to unpack .../multiarch-support_2.19-18+deb8u7_amd64.deb ...
Unpacking multiarch-support (2.19-18+deb8u7) ...
Selecting previously unselected package libc6:amd64.
Preparing to unpack .../libc6_2.19-18+deb8u7_amd64.deb ...
Unpacking libc6:amd64 (2.19-18+deb8u7) ...
dpkg: dependency problems prevent configuration of libc6:amd64:
 libc6:amd64 depends on libgcc1; however:
  Package libgcc1 is not installed.
dpkg: error processing package libc6:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of multiarch-support:
 multiarch-support depends on libc6 (>= 2.3.6-2); however:
  Package libc6:amd64 is not configured yet.
dpkg: error processing package multiarch-support (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
e[91mEe[0me[91m: Sub-process /usr/bin/dpkg returned an error code (1)

Why Is this Dockerfile working on Arch Linux but not on my Mac?