jlesage / docker-firefox

Docker container for Firefox
MIT License
1.4k stars 266 forks source link

openwrt docker 中文显示乱码 #220

Open caixin1218 opened 5 months ago

caixin1218 commented 5 months ago

Current Behavior

openwrt 软路由安装的docker 中文显示乱码

Expected Behavior

1706443222962

Steps To Reproduce

No response

Environment

Container creation

docker run -d \ --name=firefox \ -p 5800:5800 \ /mnt/sda1/docker/firefox:/firefox

Container log

none

Container inspect

No response

Anything else?

No response

jlesage commented 5 months ago

Did you try to set the ENABLE_CJK_FONT environment variables: -e ENABLE_CJK_FONT=1

JeazW commented 3 months ago
wget https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/font-wqy-zenhei-0.9.45-r3.apk
docker cp font-wqy-zenhei-0.9.45-r3.apk firefox:/
docker exec -it firefox sh
apk add font-wqy-zenhei-0.9.45-r3.apk

enjoy it !

FreeL00P commented 3 months ago

我也是,我觉得更多的原因是因为网络,我看了一下容器的日子,启动后在下一下字体相关的文件而且浏览器不能访问进行使用,我给容器添加代理后 ,这个问题马上就解决了。 I feel the primary reason is due to the network. I checked the logs of the container and found that after startup, it couldn't access font-related files, rendering the browser unusable. Once I added a proxy to the container, this issue was immediately resolved."

ENV-Ubuntu amd64