Open
Description
Consider the following Dockerfile to be built for armhf
as an example:
FROM debian:buster-slim
env USER root
RUN apt-get update \
&& apt-get install --no-install-recommends -y tightvncserver xfonts-base \
&& mkdir /root/.vnc \
&& echo test | vncpasswd -f >/root/.vnc/passwd \
&& chmod 600 /root/.vnc/passwd
CMD vncserver
If you then try to run the resulting image, either on Docker Mac or on Raspberry Pi, VNC won't start, complaining:
Fatal server error:
could not open default font 'fixed'
If the image were built on Raspberry Pi, there would be no error and VNC would start successfully. The image built on Mac can be fixed on Raspberry Pi by manually executing dpkg-reconfigure xfonts-base
before launching vncserver
(might be somehow related to fontconfig
.) There is no fix that works in QEMU, however. ARM64 doesn't suffer from this issue.
Sorry for not having a simpler example, this one was taken from the real world scenario.
Metadata
Metadata
Assignees
Labels
No labels