docker-firefox
docker-firefox copied to clipboard
openwrt docker 中文显示乱码
Current Behavior
openwrt 软路由安装的docker 中文显示乱码
Expected Behavior
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
Did you try to set the ENABLE_CJK_FONT
environment variables: -e ENABLE_CJK_FONT=1
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 !
我也是,我觉得更多的原因是因为网络,我看了一下容器的日子,启动后在下一下字体相关的文件而且浏览器不能访问进行使用,我给容器添加代理后 ,这个问题马上就解决了。 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