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

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

官方QQ群: 1072982923

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

xubuntu-vnc-novnc
accetto/xubuntu-vnc-novnc
Headless Ubuntu/Xfce container with VNC/noVNC (G2).
7 收藏0 次下载
📦 一套镜像服务,解决研发 / 测试 / 生产三套环境
镜像简介版本下载
📦 一套镜像服务,解决研发 / 测试 / 生产三套环境

Headless Ubuntu/Xfce container with VNC/noVNC

accetto/xubuntu-vnc-novnc

Docker Hub - Git Hub - Changelog - Wiki - Hierarchy


  • Headless Ubuntu/Xfce container with VNC/noVNC
    • accetto/xubuntu-vnc-novnc
      • Introduction
      • Description
      • Image tags
      • Dockerfiles
      • Ports
      • Volumes
      • Version sticker
    • Using headless containers
      • Over VNC
      • Over noVNC
    • Container user accounts
    • Running containers in background (detached)
    • Running containers in foreground (interactively)
    • Issues
    • Credits

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 and it is part of the growing image hierarchy.

The main features and components of the images are:

  • 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
  • light-weight Xfce desktop environment (Ubuntu distribution)
  • current version of high-performance TigerVNC server and client
  • current version of noVNC HTML5 clients (full and lite) (TCP port 6901)
  • 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)
  • support for overriding both the container user account and its group
  • support of version sticker (see 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 ubuntu:latest

Dockerfiles

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

  • Dockerfile

    This is the main Dockerfile for building the latest image tag based on the ubuntu:latest tag by default.

    However, by providing the BASETAG build argument it is possible to build images based on other Ubuntu tags, for example ubuntu:rolling.

    shell
    docker build --build-arg BASETAG=rolling -t accetto/xubuntu-vnc-novnc:rolling
    

    By providing the ARG_SUPPORT_USER_GROUP_OVERRIDE build argument it is possible to build the lab images that support overriding the container user group. Note that the value of the build argument does not really matter, anything means true.

    shell
    docker build --build-arg ARG_SUPPORT_USER_GROUP_OVERRIDE=yes -t accetto/xubuntu-vnc-novnc:lab
    
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).

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.

The default VNC user password is headless and it can be changed through the environment variable VNC_PW. For example the following container would use the password value mynewpwd:

shell
docker run -dP -e VNC_PW=mynewpwd accetto/xubuntu-vnc-novnc
Over VNC

To be able to use the containers over VNC, some VNC Viewer is needed (e.g. TigerVNC or TightVNC).

The VNC Viewer should connect to the host running the container, pointing to its TCP port mapped to the container's TCP port 5901.

For example, if the container has been created on the host called mynas using the parameters described above, the VNC Viewer should connect to mynas:25901.

Over noVNC

To be able to use the containers over noVNC, an HTML5 capable web browser is needed. It actually means, that any current web browser can be used.

The browser should navigate to the host running the container, pointing to its TCP port mapped to the container's TCP port 6901.

The containers offer two noVNC clients - the lite client and the full client with more features. The connection URL differs slightly in both cases. To make it easier, a simple startup page is implemented.

For example, if the container has been created on the host called mynas using the parameters described above, then the web browser should navigate to [***].

The startup page will show two hyperlinks pointing to the both noVNC clients:

  • [***]
  • [***]

It's also possible to provide the password through the links:

  • [***]
  • [***]

Container user accounts

Containers created from this image run under the default application user (headless, 1001:0) with the default password set also to headless. This password can be changed inside the container using the following command:

shell
passwd

Please do not confuse the default application user password with the VNC user password, because they both have the same default value. However, the former one is used for sudo and it can be changed using passwd command. The latter one is used for VNC access and it can be changed through the VNC_PW environment variable (see above).

The sudo command allows user elevation, so the default application user can, for example, install new applications.

The following example shows how to install git:

shell
sudo apt-get update
sudo apt-get install -y git

Note that the default application account's group membership (group zero) does not give it automatically the privileges of the root user. Technical details will be described in Wiki.

The container user ID (1001 by default) can be changed by creating the container using the --user parameter, for example:

shell
docker run -itP --rm --user 2019 accetto/xubuntu-vnc-novnc

The image supports also overriding the container user's group ID (0 by default). However, the image must be built with the argument ARG_SUPPORT_USER_GROUP_OVERRIDE. Otherwise the following command line would fail:

shell
### This will fail (Permission denied)
docker run -itP --rm --user 2019:2000 accetto/xubuntu-vnc-novnc:latest

### This will work (image built with ARG_SUPPORT_USER_GROUP_OVERRIDE)
docker run -itP --rm --user 2019:2000 accetto/xubuntu-vnc-novnc:lab

The image tag lab is build just that way.

Note that only numerical ID and GID are supported. Technical details will be described in Wiki.

Running containers in background (detached)

The following container will keep running in the background and it will listen on an automatically selected TCP port on the host computer:

shell
docker run -dP accetto/xubuntu-vnc-novnc

The following container will listen on the host's TCP port 25901:

shell
docker run -d -p 25901:5901 accetto/xubuntu-vnc-novnc

The following container will create (or re-use) the local named volume my_Downloads mounted as /home/headless/Downloads:

shell
docker run -dP -v my_Downloads:/home/headless/Downloads accetto/xubuntu-vnc-novnc

or using the newer syntax with --mount flag:

shell
docker run -dP --mount source=my_Downloads,target=/home/headless/Downloads accetto/xubuntu-vnc-novnc

Running containers in foreground (interactively)

The image supports the following container start-up options: --wait (default), --skip, --debug (also --tail-log) and --help.

The following container will print out the help and then it will remove itself:

shell
docker run --rm accetto/xubuntu-vnc-novnc --help

Excerpt from the output describing the options:

shell
-w, --wait      (default) Keeps the UI and the vnc server up until SIGINT or SIGTERM are received.
                An optional command can be executed after the vnc starts up.
                example: docker run -d -P accetto/xubuntu-vnc-novnc
                example: docker run -it -P --rm accetto/xubuntu-vnc-novnc bash

-s, --skip      Skips the vnc startup and just executes the provided command.
                example: docker run -it -P --rm accetto/xubuntu-vnc-novnc --skip echo $BASH_VERSION

-d, --debug     Executes the vnc startup, prints some additional info and tails the VNC logs.
                Any parameters after '--debug' are ignored. CTRL-C stops the container.
                example: docker run -it -P --rm accetto/xubuntu-vnc-novnc --debug

-t, --tail-log  similar to '--debug' but no additional diagnostic info

-h, --help      Prints out this help.
                example: docker run --rm accetto/xubuntu-vnc-novnc

It should be noticed, that the --debug start-up option does not show the command prompt, even if the docker run arguments -it are provided. This is because the container is watching the incoming VNC connections and prints out the logs in real time. However, it is easy to attach to the running container from the second terminal window.

In the first terminal window on the host computer, create a new container named, for example, foo:

shell
docker run --rm --name foo accetto/xubuntu-vnc-novnc --debug

In the second terminal window, execute the shell inside the running foo container:

shell
docker exec -it foo bash

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 相关镜像 →
rancher/vm-novnc logo
rancher/vm-novnc
暂无描述
10K+ pulls
上次更新:未知
rancher/novnc logo
rancher/novnc
暂无描述
33.9K pulls
上次更新:未知
accetto/xubuntu-vnc-novnc-chromium logo
accetto/xubuntu-vnc-novnc-chromium
Headless Ubuntu/Xfce container with VNC/noVNC and Chromium (G2).
1250K+ pulls
上次更新:未知
accetto/xubuntu-vnc-novnc-firefox logo
accetto/xubuntu-vnc-novnc-firefox
Headless Ubuntu/Xfce container with VNC/noVNC and Firefox (G2).
410K+ pulls
上次更新:未知
theasp/novnc logo
theasp/novnc
用于在浏览器中显示其他容器X11应用的noVNC显示容器,基于Debian Stretch,包含Xvfb、x11vnc、noVNC、窗口管理器等组件,支持独立演示和Docker Compose集成。
291M+ pulls
上次更新:未知
bonigarcia/novnc logo
bonigarcia/novnc
基于Alpine的独立noVNC客户端,支持通过环境变量自动连接VNC服务器、传递VNC密码及设置仅查看模式。
100K+ 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
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.