You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to create a Docker image with a Dockerfile in a start_chroot_script (or other method)?
I would like this image to be available after installing the customized distribution, as the build process on the Raspberry takes too long. The image could not be uploaded to dockerhub.
There are a few issues that come to mind, but I'm not sure how to solve them.
Currently I start the Docker daemon with
# Start the Docker daemon manually in the background without iptables and bridge network support
dockerd --iptables=false --bridge=none &
Unfortunately then no build is possible because no bridge is available.
I would not build a docker image via CustomPiOS that uses qemu-arm-static because it takes a long time. You are going via emulation.
Docker has lots of tools to build images cross-platform.
What you can do is build the image using buildx. Then load it as a tar file. on the device.
docker buildx build --platform linux/amd64 -f Dockerfile . -t foo
then docker save foo -o too.tar
Activity
guysoft commentedon May 5, 2025
I would not build a docker image via CustomPiOS that uses qemu-arm-static because it takes a long time. You are going via emulation.
Docker has lots of tools to build images cross-platform.
What you can do is build the image using buildx. Then load it as a tar file. on the device.
https://docs.docker.com/reference/cli/docker/image/load/
guysoft commentedon Jul 13, 2026
Closing if no reply