Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (26 loc) · 795 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 795 Bytes

docker-xubuntu

Official Docker ubuntu image with XFCE and VNC Server

Requirements

Only if you want to use VNC client (other solution is noVNC)

sudo apt install xtightvncviewer

Usage

Build image

git clone https://github.com/jychp/docker-xubuntu
cd docker-xubuntu
docker build -t xubuntu .

Launch and connect

CID=$(sudo docker run -d xubuntu); CIP=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CID); vncviewer $CIP:2
vncviewer <container_ip>:2

Using noVNC

CID=$(sudo docker run -d xubuntu); CIP=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CID); vncviewer $CIP:2
echo "http://<container_ip>:6901"

Options

VNC password and resolution can be passed using environment variables.