Docker Community Forums

Share and learn in the Docker community.

Need to build docker swarm with different Rpi architectures

docker
swarm

(Shai25) #1

Hi,
I am trying to build a cross platform docker swarm with one Pine64 Rpi as the ‘master’ and the rest 3 ‘worker’, which are, another pine64, arm64(64-bit) and armv7(32-bit). I always found my httpd service in a never ending ‘pending’ state, and got the error, “no suitable node (unsupported platform on 4 nodes)”.

I later found that I should use ‘docker manifest’ for different architectures of Raspberry pi3.
(From : https://developer.ibm.com/linuxonpower/2017/07/27/create-multi-architecture-docker-image/#comment-232)

I first cloned from, git clone -b manifest-cmd https://github.com/clnperez/cli.git
Then, when I tired to make the binary with the command, $ make -f docker.Makefile cross , I receive the following error,
failed to register layer: Error processing tar file(gzip: invalid checksum):
docker.Makefile:27: recipe for target ‘build_cross_image’ failed
make: *** [build_cross_image] Error 1

How can I fix it? please, I need to build a docker swarm on my Rpi’s.
And, I don’t know if it’s the right place to ask about docker manifest too.