Linux

将字体复制到Docker镜像中

Java服务需要中文字体,因为生成图片、PDF,或者处理文字渲染时遇到了缺少字体的问题。常见的比如使用iText生成PDF,或者使用Apache POI处理Excel时,如果系统没有安装中文字体,可能会出现乱码或者方块的问题。

Linux

Linux 文件名超限处理

在大多数常见的 Linux 文件系统(如 ext4、xfs 等)上,单个文件名(不含路径)通常限制在 255 个字节(并非字符)之内。如果尝试创建超过 255 字节长度的文件名,就会遇到“File name too long”等错误。...

Linux

docker: 'buildx' is not a docker command

背景idea连接docker进行构建x构建镜像时,报了错: ERROR: BuildKit is enabled but the buildx component is missing or broken. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ 然后执行 1docker buildx install 报错:docker: ‘buildx’ is not a docker command 当 docker 报错 buildx is not a docker command 时,通常意味着你的 Docker CLI 没有安装或未正确配置 buildx 插件。以下是解决该问题的步骤: