I try to create my own base images and I have one question and two problems regarding that.
A question, out of idle curiosity: how does Dockerfile with
FROM resin/raspberrypi3-debianmanages to build on a mac? I was really surprised that it worked on my machine (because arm and x86 are quite different beasts).
Why the same Dockerfile that worked locally fails to build an image on docker cloud services (both hub and cloud):
Building in Docker Cloud's infrastructure... Cloning into '.'... Warning: Permanently added the RSA host key for IP address '220.127.116.11' to the list of known hosts. Reset branch 'master' Your branch is up-to-date with 'origin/master'. KernelVersion: 4.4.0-87-generic Arch: amd64 BuildTime: 2017-03-28T19:26:53.326478373+00:00 ApiVersion: 1.27 Version: 17.03.1-ee-2 MinAPIVersion: 1.12 GitCommit: ad495cb Os: linux GoVersion: go1.7.5 Starting build of index.docker.io/vasin/vs-player:latest... Step 1/7 : FROM resin/raspberrypi3-debian ---> 31724eed925c Step 2/7 : RUN apt-get update && apt-get install -yq cmake build-essential ---> Running in 90170e50105f standard_init_linux.go:178: exec user process caused "exec format error" Removing intermediate container 90170e50105f The command '/bin/sh -c apt-get update && apt-get install -yq cmake build-essential' returned a non-zero code: 1 ERROR: Build failed: The command '/bin/sh -c apt-get update && apt-get install -yq cmake build-essential' returned a non-zero code: 1 ERROR: Build failed with exit code 2 ERROR: Build in 'master' (7b8c52f1) failed in 0:01:45
Are there any workarounds? I’d prefer to just push code of my base image to repository and not to build and push docker image to docker cloud manually after that.
I’ve noticed that https://hub.docker.com/r/resin/raspberrypi3-debian/ is also not auto-built, so I suppose resin.io team has the same problem.
- How can I pull a private base image from Docker hub for resin.io device? I was able to use a public image for that, now how do I tell resin my docker credentials?