Reputation: 1970
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/
Upvotes: 0
Views: 477
Reputation: 48335
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.
Upvotes: 2