All Projects → ConSol → Docker Headless Vnc Container

ConSol / Docker Headless Vnc Container

Licence: apache-2.0
Collection of Docker images with headless VNC environments

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Docker Headless Vnc Container

Mysql Container
MySQL container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 117 (-90.05%)
Mutual labels:  centos, docker-image, openshift
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (-87.67%)
Mutual labels:  ubuntu, centos, docker-image
python3-docker-devenv
Docker Start Guide with Python Development Environment
Stars: ✭ 13 (-98.89%)
Mutual labels:  ubuntu, docker-container, docker-image
Ffmpeg
Docker build for FFmpeg on Ubuntu / Alpine / Centos 7 / Scratch
Stars: ✭ 828 (-29.59%)
Mutual labels:  ubuntu, centos
Openvpn Install
Set up your own OpenVPN server on Debian, Ubuntu, Fedora, CentOS or Arch Linux.
Stars: ✭ 7,142 (+507.31%)
Mutual labels:  ubuntu, centos
Androidsdk
🐳 Full-fledged Android SDK Docker Image
Stars: ✭ 776 (-34.01%)
Mutual labels:  docker-image, docker-container
Anlinux App
AnLinux allow you to run Linux on Android without root access.
Stars: ✭ 614 (-47.79%)
Mutual labels:  ubuntu, centos
Dockerized lara
Build your Laravel App with Redis - Mongodb - MariaDB - Nginx - php7 - zsh
Stars: ✭ 9 (-99.23%)
Mutual labels:  docker-image, docker-container
Mariadb Container
MariaDB container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 19 (-98.38%)
Mutual labels:  centos, openshift
Distro Test Containers
Distribution specific containers for Ansible integration testing.
Stars: ✭ 20 (-98.3%)
Mutual labels:  docker-image, docker-container
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-96.85%)
Mutual labels:  docker-image, docker-container
Vrnetlab
Run virtual routers with docker
Stars: ✭ 731 (-37.84%)
Mutual labels:  docker-image, docker-container
Wireguard Install
WireGuard road warrior installer for Ubuntu, Debian, CentOS and Fedora
Stars: ✭ 650 (-44.73%)
Mutual labels:  ubuntu, centos
Directus Docker
Directus 6 Docker — Legacy Container [EOL]
Stars: ✭ 68 (-94.22%)
Mutual labels:  docker-image, docker-container
Atilo
Linux installer for termux
Stars: ✭ 629 (-46.51%)
Mutual labels:  ubuntu, centos
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (-28.15%)
Mutual labels:  ubuntu, centos
Linux Tutorial
《Java 程序员眼中的 Linux》
Stars: ✭ 7,757 (+559.61%)
Mutual labels:  ubuntu, centos
Dockerfile
📦 Dockerfiles from WebDevOps for PHP, Apache and Nginx (with PHP5 and PHP7)
Stars: ✭ 1,169 (-0.6%)
Mutual labels:  centos, docker-image
Docker Bind
Bind caching DNS server on Debian with wild-card domain support
Stars: ✭ 50 (-95.75%)
Mutual labels:  docker-image, docker-container
Docker Alpine
Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
Stars: ✭ 574 (-51.19%)
Mutual labels:  docker-image, docker-container

Docker container images with "headless" VNC session

This repository contains a collection of Docker images with headless VNC environments.

Each Docker image is installed with the following components:

  • Desktop environment Xfce4 or IceWM
  • VNC-Server (default VNC port 5901)
  • noVNC - HTML5 VNC client (default http port 6901)
  • Browsers:
    • Mozilla Firefox
    • Chromium

Docker VNC Desktop access via HTML page

Build Status

master: Build Status MASTER dev: Build Status DEV

Current provided OS & UI sessions:

  • consol/centos-xfce-vnc: Centos7 with Xfce4 UI session

  • consol/ubuntu-xfce-vnc: Ubuntu with Xfce4 UI session

  • consol/centos-icewm-vnc: Centos7 with IceWM UI session

  • consol/ubuntu-icewm-vnc: Ubuntu with IceWM UI session

OpenShift / Kubernetes

It's also possible to run the images in container orchestration platforms like Kubernetes or OpenShift. For more information how to deploy containers in the cluster, take a look at:

Usage

Usage is similar for all provided images, e.g. for consol/centos-xfce-vnc:

  • Print out help page:

    docker run consol/centos-xfce-vnc --help
    
  • Run command with mapping to local port 5901 (vnc protocol) and 6901 (vnc web access):

    docker run -d -p 5901:5901 -p 6901:6901 consol/centos-xfce-vnc
    
  • Change the default user and group within a container to your own with adding --user $(id -u):$(id -g):

    docker run -d -p 5901:5901 -p 6901:6901 --user $(id -u):$(id -g) consol/centos-xfce-vnc
    
  • If you want to get into the container use interactive mode -it and bash

    docker run -it -p 5901:5901 -p 6901:6901 consol/centos-xfce-vnc bash
    
  • Build an image from scratch:

    docker build -t consol/centos-xfce-vnc centos-xfce-vnc
    

Connect & Control

If the container is started like mentioned above, connect via one of these options:

Hints

1) Extend a Image with your own software

Since version 1.1.0 all images run as non-root user per default, so if you want to extend the image and install software, you have to switch back to the root user:

## Custom Dockerfile
FROM consol/centos-xfce-vnc
ENV REFRESHED_AT 2018-03-18

# Switch to root user to install additional software
USER 0

## Install a gedit
RUN yum install -y gedit \
    && yum clean all

## switch back to default user
USER 1000

2) Change User of running Sakuli Container

Per default, since version 1.3.0 all container processes will be executed with user id 1000. You can change the user id as follows:

2.1) Using root (user id 0)

Add the --user flag to your docker run command:

docker run -it --user 0 -p 6911:6901 consol/centos-xfce-vnc

2.2) Using user and group id of host system

Add the --user flag to your docker run command:

docker run -it -p 6911:6901 --user $(id -u):$(id -g) consol/centos-xfce-vnc

3) Override VNC environment variables

The following VNC environment variables can be overwritten at the docker run phase to customize your desktop environment inside the container:

  • VNC_COL_DEPTH, default: 24
  • VNC_RESOLUTION, default: 1280x1024
  • VNC_PW, default: my-pw

3.1) Example: Override the VNC password

Simply overwrite the value of the environment variable VNC_PW. For example in the docker run command:

docker run -it -p 5901:5901 -p 6901:6901 -e VNC_PW=my-pw consol/centos-xfce-vnc

3.2) Example: Override the VNC resolution

Simply overwrite the value of the environment variable VNC_RESOLUTION. For example in the docker run command:

docker run -it -p 5901:5901 -p 6901:6901 -e VNC_RESOLUTION=800x600 consol/centos-xfce-vnc

4) View only VNC

Since version 1.2.0 it's possible to prevent unwanted control via VNC. Therefore you can set the environment variable VNC_VIEW_ONLY=true. If set, the startup script will create a random password for the control connection and use the value of VNC_PW for view only connection over the VNC connection.

 docker run -it -p 5901:5901 -p 6901:6901 -e VNC_VIEW_ONLY=true consol/centos-xfce-vnc

5) Known Issues

5.1) Chromium crashes with high VNC_RESOLUTION (#53)

If you open some graphic/work intensive websites in the Docker container (especially with high resolutions e.g. 1920x1080) it can happen that Chromium crashes without any specific reason. The problem there is the too small /dev/shm size in the container. Currently there is no other way, as define this size on startup via --shm-size option, see #53 - Solution:

docker run --shm-size=256m -it -p 6901:6901 -e VNC_RESOLUTION=1920x1080 consol/centos-xfce-vnc chromium-browser http://map.norsecorp.com/

Thx @raghavkarol for the hint!

How to release

See how-to-release.md

Contributors

At this point we want to thank all contributors, which helped to move this great project by submitting code, writing documentation, or adapting other tools to play well together with the docker headless container.

Changelog

The current changelog is provided here: changelog.md

Contact

For questions, professional support or maybe some hints, feel free to contact us via [email protected] or open an issue.

The guys behind:

ConSol Software GmbH
Franziskanerstr. 38, D-81669 Munich
Tel. +49-89-45841-100, Fax +49-89-45841-111
Homepage: http://www.consol.de E-Mail: [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].