Docker Community Forums

Share and learn in the Docker community.

Docker beta; command getting bus-error; but works on real VM


(Gary Faulkner) #1

Trying to build android under docker. When building the linux kernel for android, the cros-compiler LD command gets a “bus error” (i.e. SIGBUS) when trying to do an intermediate link.

One thing that I noticed is that cat of /proc/version inside the container gives the following:

Linux version 4.4.11-moby (root@5d6665c4dc01) (gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) ) #1 SMP Sat May 28 11:37:28 UTC 2016

One question I have is: where does this kernel come from, and is it possible to run an older kernel? Since this all works under real hardware running linux (and a VMWare linux image), but in both of those cases the running kernel is a 2.6 based kernel:

cat /proc/version
Linux version ( (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) ) #1 SMP Mon Jun 4 20:33:44 UTC 2012

Expected behavior

Should be able to build the linux kernel under docker as if building under running linux system.

Actual behavior

When building the linux kernel, getting the following error:

/bin/sh: line 1: 13946 Bus error /Volumes/android/bugfix/cpe_android_tca203_os/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-ld -EL -r -o usr/built-in.o usr/initramfs_data.o


  • the output of:
    • pinata diagnose -u on OSX

OS X: version 10.11.5 (build: 15F34) version v1.11.1-beta13.1
Running diagnostic tests:
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x
Docker logs are being collected into /tmp/20160603-064932.tar.gz
Most specific failure is: No error was detected
Your unique id is: CB902AA9-5875-418A-9339-8EE1E29D19FC
Please quote this in all correspondence.

  • a reproducible case if this is a bug, Dockerfiles FTW

Not sure how to provide this.

  • page URL if this is a docs issue or the name of a man page


  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

OS X: version 10.11.5 (build: 15F34)

Steps to reproduce the behavior

You’d have to have our source tree to truly reproduce this.