Q:

Dockerhub fails to build my Dockerfile

I made a Dockerfile that works great on my machine, but the build is failing on dockerhub.
The dockerhub error is:
Build failed: The command '/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl gcc libc6-dev libc6 --no-install-recommends && exit 0' returned a non-zero code: 1

That step builds fine on my (ARM) machine, however it does produce a warning:
debconf: delaying package configuration, since apt-utils is not installed

(I'm unable to silence that, tried fixes that worked for other people).
Here is the dockerhub build (includes Dockerfile and error): https://hub.docker.com/r/askmike/golang-arm/builds/bnc9b3xqgedfbeboix2ezv4/

Question 1: If there is warning from apt-get, will that consider the build failed? (I can't find what the return code would be).
Question 2: Is there maybe another error in the dockerhub build that does not happen on my machine? If so, how can I ever troubleshoot this?

A:

It looks like the cause of the build failure is:
standard_init_linux.go:178: exec user process caused "exec format error"

Your base image is resin/rpi-raspbian:jessie which is an ARM image.  Docker Hub is an x86_64 build platform.  So you will not be able to use Docker Hub to build your images.

