Linux Onlyoffice Docker scripts are available for download. Are docker containers tied to a particular CPU architecture (IA64 vs ARM)? I would like to run Onlyoffice on an ARM platform (Raspbery Pi 4 or similar SBC computer).

  • docs.docker.com/engine/faq – Ewan Jan 4 '20 at 9:13
  • Containers are ordinary Linux processes using various security features, and container images are very similar to a TAR archives: they just contain ordinary executables. So yes, Docker images are effectively platform-dependent. You cannot use x64 images on ARM devices. – amon Jan 4 '20 at 10:01
  • Yes. Good Docker support for cross-architecture is apparently not a priority. – Thorbjørn Ravn Andersen Dec 16 '20 at 18:58

TL;DR your idea won't work, for several reasons.

In general, yes, docker images are tied to CPU architectures. It is probably possible to run docker under a CPU emulator but you most likely won't be happy with the performance.

Some docker images can be built for different CPU architectures using very slightly modified Dockerfiles, just as you can build binaries using Makefiles. This works best if a corresponding base image is available and the Dockerfile just installs and configures packages from the distro's repository.

In your specific case, there only seems to be an amd64 docker image available. I don't know the software, so can't say whether it would be possible to build an image if you had the Dockerfile and other files needed to build.

However, given the resource requirements stated, an arm-based SBC may be underpowered for this application.

If you calculate the value of your time, spending some money on a suitable small PC would likely be the most economical solution.

  • My gut told me that I would need to compile the application for ARM, however, I was not certain (and hopeful my gut was wrong). – gatorback Jan 4 '20 at 18:43
  • Compiling the app for another architecture and packaging a docker image is certainly a valuable thing to do. Even if the result may not be suitable for production use, you will have gained a lot of useful experience on the way. And if the performance is good enough you got a working application on top :-) – Hans-Martin Mosner Jan 4 '20 at 19:49
  • Agreed. If you are interested I have posed a related question regarding cross compiling the application without docker – gatorback Jan 4 '20 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.