Docker container for Firefox

基于jlesage/firefox的镜像,添加小米MiSans字体,支持显示中文网页。

启动命令如下

docker run -d --name=firefox -p 5800:5800 -v d:\\tmp\firefox:/config:rw --shm-size=512m --hostname firefox wellsen/firefox

如果需要指定网络可以使用如下命令

docker run -d --network hadoop --name=firefox --ip 172.32.3.100 -p 5800:5800 -v d:\\tmp\firefox:/config:rw --shm-size=512m --hostname firefox wellsen/firefox

在浏览器里打开http://your-host-ip:5800页面即可访问docker中的Firefox

构建Dockerfile内容如下,其中MiSans.tar.gz可以自行去小米网站MiSans MIUI13全新系统字体下载

FROM jlesage/firefox

ADD MiSans.tar.gz /usr/share/fonts/

具体详细使用方式请参考原始镜像jlesage/firefox网页或GitHubjlesage/docker-firefox

jlesage/firefox是基于Alpine Linux构建的,关于Alpine Linux添加字体的方法请参考文档Alpine Linux Fonts

Reference:

Running a Web Browser in a Docker container

jlesage/docker-firefox