Because the build system requires that its command are not executed by root,
openwrt was created. The buildroot can be found in
To run a shell in the buildroot, execute the following command:
docker run -t -i noonien/openwrt-buildroot:14.07 sudo -iu openwrt bash
More information on how to use this buildroot can be found on the OpenWRT wiki.