docker-firefox icon indicating copy to clipboard operation
docker-firefox copied to clipboard

openwrt docker 中文显示乱码

Open caixin1218 opened this issue 1 year ago • 3 comments

Current Behavior

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

Expected Behavior

1706443222962

Steps To Reproduce

No response

Environment

  • OS:
  • OS version:
  • CPU:
  • Docker version:
  • Device model:
  • Browser/OS:

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

caixin1218 avatar Jan 28 '24 12:01 caixin1218

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

jlesage avatar Jan 28 '24 21:01 jlesage

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 !

JeazW avatar Mar 11 '24 17:03 JeazW

我也是,我觉得更多的原因是因为网络,我看了一下容器的日子,启动后在下一下字体相关的文件而且浏览器不能访问进行使用,我给容器添加代理后 ,这个问题马上就解决了。 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

FreeL00P avatar Mar 18 '24 04:03 FreeL00P