Uses the original Dockerfile but COPYs a go binary built for arm with https://github.com/CenturyLinkLabs/golang-builder/pull/8
docker run --rm \
-e BUILD_GOOS="linux" \
-e BUILD_GOARCH="arm" \
-v $(pwd):/src \
centurylink/golang-builder-cross
Then just add it into your container.
FROM scratch
COPY dockerui /
COPY dist /
EXPOSE 9000
ENTRYPOINT ["/dockerui"]
how this image was build: https://github.com/linki/dockerui/commit/8263d566df23897bab4c70b517dedbfa531e2c6b
run on your rpi2 with the following command and browse to port 9000.
docker run -d -p 9000:9000 -v /var/run/docker.sock:/docker.sock --name dockerui linki/rpi-dockerui -e /docker.sock
Content type
Image
Digest
sha256:1c49fdf68…
Size
2.3 MB
Last updated
over 10 years ago
docker pull linki/rpi-dockerui