专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

accetto/xubuntu-vnc-novnc-firefox Docker 镜像 - 轩辕镜像

xubuntu-vnc-novnc-firefox
accetto/xubuntu-vnc-novnc-firefox
Headless Ubuntu/Xfce container with VNC/noVNC and Firefox (G2).
4 收藏0 次下载
🙃 代码没问题,结果发布失败在拉镜像
镜像简介版本下载
🙃 代码没问题,结果发布失败在拉镜像

Headless Ubuntu/Xfce container with VNC/noVNC and Firefox

accetto/xubuntu-vnc-novnc-firefox

Docker Hub - Git Hub - Changelog - Wiki - Hierarchy


  • Headless Ubuntu/Xfce container with VNC/noVNC and Firefox
    • accetto/xubuntu-vnc-novnc-firefox
      • Introduction
      • Description
      • Image tags
      • Dockerfiles
      • Ports
      • Volumes
      • Container user accounts
      • Version sticker
      • Using headless containers
    • Firefox multi-process
      • Setting shared memory size
    • Firefox preferences and the plus features
    • Issues
    • Credits

WARNING about images with Firefox

Starting from the release 20.10.1, there is no single-process Firefox image and the multi-process mode is always enabled. Be aware, that multi-process requires larger shared memory (/dev/shm). At least 256MB is recommended. Please check the Firefox multi-process page in Wiki for more information and the instructions, how to set the shared memory size in different scenarios.


Introduction

This repository contains resources for building Docker images based on Ubuntu 18.04 LTS with Xfce desktop environment and VNC/noVNC servers for headless use.

This is the second generation (G2) of my headless images, that I've retired back in March 2022. However, because I've noticed that the images are still pulled, I've revived the project in November 2022. The current second version (G2v2) brings some improvements, mostly in the building pipeline and supporting scripts.

If you want the newer images based on Ubuntu 20.04 LTS with the latest TigerVNC/noVNC versions, please check the third generation (G3) accetto/ubuntu-vnc-xfce-g3, accetto/ubuntu-vnc-xfce-chromium-g3 or accetto/ubuntu-vnc-xfce-firefox-g3.

Description

The main image is a streamlined and simplified version of my other image accetto/ubuntu-vnc-xfce-firefox-plus. The applicable plus features have been re-implemented because Firefox v67 handles user profiles differently.

The images are part of the growing image hierarchy and they are based on accetto/xubuntu-vnc-novnc. They inherit all the features and therefore not the whole description will be repeated here.

The latest image inherits among others

  • utilities ping, wget, zip, unzip, sudo, curl, git (Ubuntu distribution)
  • utility gdebi lets you install local .deb packages resolving and installing their dependencies (Ubuntu distribution)
  • current version of JSON processor jq
  • popular text editors vim and nano (Ubuntu distribution)
  • lite but advanced graphical editor mousepad (Ubuntu distribution)
  • xfce4-screenshooter and image viewer ristretto (Ubuntu distribution)
  • current version of tini as the entry-point initial process (PID 1)

and adds

  • current version of Firefox Quantum web browser and some additional plus features described below

The history of notable changes is documented in the CHANGELOG.

Image tags

The following image tags are regularly maintained and rebuilt:

  • latest is based on accetto/xubuntu-vnc-novnc:latest and it includes also the plus features

Dockerfiles

The Git Hub repository contains several Dockerfiles that can be used to build the images.

  • Dockerfile.firefox

    This is the main Dockerfile for building the latest image tag based on the accetto/xubuntu-vnc-novnc:latest tag by default.

    However, by providing the BASETAG build argument it is possible to build images based on other base tags, for example accetto/xubuntu-vnc-novnc:lab.

    This Docker file will include also the plus features described below.

  • Dockerfile.firefox.default

    This Dockerfile is for building the default image tag, which is also based on the accetto/xubuntu-vnc-novnc:latest, but it does not include the plus features.

  • Dockerfile.firefox.myown can be used for building images with your own Firefox preferences already built-in

Ports

Following TCP ports are exposed:

  • 5901 used for access over VNC
  • 6901 used for access over noVNC
Volumes

The containers do not create or use any external volumes by default. However, the following folders make good mounting points: /home/headless/Documents/, /home/headless/Downloads/, /home/headless/Pictures/, /home/headless/Public/

Both named volumes and bind mounts can be used. More about volumes can be found in the Docker documentation (e.g. Manage data in Docker).

Container user accounts

Containers created from these images run under the non-root default application user (headless, 1001:0). However, the sudo command allows user elevation. For more description check the base image accetto/xubuntu-vnc-novnc or Wiki.

Version sticker

Version sticker serves multiple purposes that are closer described in Wiki. The version sticker value identifies the version of the docker image and it is persisted in it when it is built. It is also shown as a badge in the README file.

However, the script version_sticker.sh can be used anytime for convenient checking of the current versions of installed applications.

The script is deployed into the startup folder, which is defined by the environment variable STARTUPDIR with the default value of /dockerstartup.

If the script is executed inside a container without an argument, then it returns the current version sticker value of the container. This value is newly calculated and it is based on the current versions of the essential applications in the container.

The current version sticker value will differ from the persisted value, if any of the included application has been updated to another version.

If the script is called with the argument -v (lower case v), then it prints out verbose versions of the essential applications that are included in the version sticker value.

If it is called with the argument -V (upper case v), then it prints out verbose versions of some more applications.

Examples can be found in Wiki.

Using headless containers

There are two ways, how to use the created headless containers. Please refer to the base image accetto/xubuntu-vnc-novnc to learn about them.

Note that the default VNC user password is headless.

Firefox multi-process

Firefox multi-process (also known as Electrolysis or just E10S) can cause heavy crashing in Docker containers if there is not enough shared memory (Gah. Your tab just crashed.).

In Firefox versions till 76.0.1 it has been possible to disable multi-process by setting the environment variable MOZ_FORCE_DISABLE_E10S. However, in Firefox 77.0.1 it has caused ugly scrambling of almost all web pages, because they were not decompressed.

Mozilla has fixed the problem in the next release, but they warned about not supporting the switch in future. That is why I've decided, that the mainstream image tagged as latest will use multi-process by default, even if it requires larger shared memory. On the positive side, performance should be higher and Internet browsing should be sand-boxed.

For some time I've maintained also singleprocess images intended for scenarios, where increasing the shared memory size is not possible or not wanted. However, by Firefox 81.0 I've noticed, that the environment variable MOZ_FORCE_DISABLE_E10S has no effect any more. Since then all images run Firefox in multi-process mode.

Please check the Wiki page Firefox multi-process for more information and the instructions, how the shared memory size can be set in different scenarios.

Setting shared memory size

Instability of multi-process Firefox is caused by setting the shared memory size too low. Docker assigns only 64MB by default. Testing on my computers has shown, that using at least 256MB completely eliminates the problem. However, it could be different on your system.

The Wiki page Firefox multi-process describes several ways, how to increase the shared memory size. It's really simple, if you need it for a single container started from the command line.

For example, the following container will have its shared memory size set to 256MB:

bash
docker run -d -P --shm-size=256m accetto/xubuntu-vnc-novnc-firefox

You can check the current shared memory size by executing the following command inside the container:

bash
df -h /dev/shm

Firefox preferences and the plus features

Firefox browser supports pre-configuration of user preferences.

Users can enforce their personal browser preferences if they put them into the user.js file and then copy it into the Firefox profile folder. The provided plus features make it really easy.

There is the /home/headless/firefox.plus folder containing the user.js file and the helper utility copy_firefox_user_preferences.sh. It will copy the user.js file into one or more existing Firefox profiles. The utility is easy to use, because it is interactive and it will also display the help, if started with the -h or --help argument.

To make it even more convenient, there are also desktop launchers for the utility and for the Firefox Profile Manager.

Recommended procedure for taking advantage of the plus features is:

  • Start the Firefox Profile Manager using the desktop launcher FF Profile Manager. Create a new Firefox profile if there is none or you want to add one more. Wait until the profile is created and then start Firefox with it. Starting Firefox is required to create the actual profile content.

    Hint: You can also check the Work offline check-box before creating the profile.

    The Firefox profiles are created inside the /home/headless/.mozilla/firefox folder by default. Note that the .mozilla folder is hidden.

    Close the Profile Manager by pushing the Exit button.

  • Put your personal Firefox preferences into the user.js file which is in the /home/headless/firefox.plusfolder. Check the Firefox documentation (e.g. Firefox preferences) for more information about the syntax.

    Hint: There is also another way. You can first start Firefox, configure it and then copy the content of the prefs.js file from the Firefox profile folder into the user.js file. Then you can check the content and to keep only the preferences you really want to enforce. It's not a quick task, but you have to do it only once or until you need an update.

  • Start the helper utility using the desktop launcher Copy FF Preferences. The utility will allow you to copy the user.js file to any of the existing Firefox profiles.

    Hint: You preferences will be enforced until you delete the user.js file from the Firefox profile folder.

It is also very easy to build customized images with pre-filled user.js files. The provided Dockerfile.firefox.myown show how to do it. The build will take just seconds.

Issues

If you have found a problem or you just have a question, please check the Issues and the Wiki first. Please do not overlook the closed issues.

If you do not find a solution, you can file a new issue. The better you describe the problem, the bigger the chance it'll be solved soon.

Credits

Credit goes to all the countless people and companies, who contribute to open source community and make so many dreamy things real.


查看更多 xubuntu-vnc-novnc-firefox 相关镜像 →
kasmweb/firefox logo
kasmweb/firefox
适用于Kasm Workspaces的浏览器可访问版本的Mozilla Firefox,支持通过Web界面访问Firefox浏览器,可集成于Kasm Workspaces平台或独立部署。
8410M+ pulls
上次更新:未知
selenium/node-firefox logo
selenium/node-firefox
用于Selenium Grid的Firefox节点镜像,可与Selenium Grid Hub配合使用,支持远程运行WebDriver测试。
15550M+ pulls
上次更新:未知
jlesage/firefox logo
jlesage/firefox
用于Firefox的Docker容器是一种轻量级、隔离的运行环境,能够为Firefox浏览器提供一致且独立的运行空间,有效避免与宿主系统的依赖冲突,支持在不同操作系统间便捷部署,便于开发、测试及多场景使用,确保Firefox在各类环境中均能稳定、安全地运行,简化了浏览器应用的管理与维护流程。
28910M+ pulls
上次更新:未知
rancher/vm-novnc logo
rancher/vm-novnc
暂无描述
10K+ pulls
上次更新:未知
linuxserver/firefox logo
linuxserver/firefox
LinuxServer/Firefox是一款容器化Firefox浏览器解决方案,可在Docker环境中快速部署运行,支持图形界面远程访问(如VNC/HTTP),用户配置、书签及扩展数据持久化存储,避免系统环境污染。兼容Linux、Windows、macOS等多平台,适合开发测试、远程办公或临时浏览器需求,提供隔离、轻量、安全的运行环境,依托LinuxServer优化配置与持续更新,确保稳定高效使用体验。
981M+ pulls
上次更新:未知
rancher/novnc logo
rancher/novnc
暂无描述
33.9K pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
accetto/xubuntu-vnc-novnc-firefox
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.