
错误
jenkins 在启动时,报错 AWT is not properly configured on this server. Perhaps you need to run your container with “-Djava.awt.headless=true”
如图所示:

解决
原因是因为 openjdk 缺少相应的字体
执行下面命令即可解决
#centos7 以上执行
yum -y install fontconfig
#ubuntu 或其他 debian 系统
apt-get install ttf-dejavu
#centos6 执行
yum install dejavu-sans-fonts
#opensuse 执行
zypper install dejavu-fonts
#Alpine 执行
apk add ttf-dejavu
正文完