Exit code from docker run

docker

#1

Hello, I’m trying to run some tests using docker as described in https://circleci.com/docs/docker/#running-tests-in-a-container

Problem is, if I add --rm I get the following error:

ERROR: Driver btrfs failed to remove root filesystem 042e94623b762e26a9197136e18ce74ffd09b4c9895d1c0b4987a9df6c010f73: Failed to destroy btrfs snapshot /var/lib/docker/btrfs/subvolumes for 042e94623b762e26a9197136e18ce74ffd09b4c9895d1c0b4987a9df6c010f73: operation not permitted

If I remove --rm, I’m able to complete the tests but when there is a compilation error the exit code is still 0.

How can I get the correct exit code if I’m not able to set the --rm option?

Thanks


#2