My Raspberry Pi 2 is running Ubuntu. I wanted to try the phoronix test suite with a different compiler and thought that Docker could be great for this. After installing docker and trying to run my image I was met by "write pipe: bad file descriptor".
The issue was that docker is not architecture aware. Thus running "docker create ubuntu" will default to x86_64, regardless of your arch. To run ubuntu the solution was to ask for armv7/armhf-ubuntu instead.
hub.docker.com - armv7