Error removing intermediate container during Docker build

Hello,

I’m trying to build a Docker image from circleci, but it keeps failing even after upgrading Docker to 1.10.3

My Dockerfile contains:

FROM tomcat:7.0.68-jre7

RUN apt-get update \
    && apt-get install -y postgresql-client-9.4 \
                          openjdk-7-jdk \
                          git

and Circleci fails with this message:

[…]
Setting up xauth (1:1.0.9-1) …

Processing triggers for libc-bin (2.19-18+deb8u4) …

Processing triggers for libc-bin (2.19-18+deb8u4) …

Processing triggers for systemd (215-17+deb8u4) …

Processing triggers for systemd (215-17+deb8u4) …

—> d760591b188a
Error removing intermediate container 875ed8a44bd1: Cannot destroy container 875ed8a44bd1b0003feaaccae88122403d292e0dfebc14842df4f81cb3b16715: Driver btrfs failed to remove root filesystem 875ed8a44bd1b0003feaaccae88122403d292e0dfebc14842df4f81cb3b16715: Failed to destroy btrfs snapshot: operation not permitted

The same build works perfectly on my local machine (Ubuntu 15.10)

Thanks

Hello,

This is a known issue outlined here: Docker Error removing intermediate container

Best,
Lev