AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"?
I sometimes get that message when installing Jenkins on Archlinux. This is because the dependency list is not well configured yet.
Instead of fixing it, I work around:
pacman -S freetype2 fontconfig