From 6397a80b27c23c28274a169b796abb1db6d83c82 Mon Sep 17 00:00:00 2001
From: Stefano Alberto Russo <stefano.russo@gmail.com>
Date: Mon, 17 Jan 2022 19:17:09 +0100
Subject: [PATCH] Added basic documentation.

---
 README.md | 42 ++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 78d71c4..8719b17 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
 
 Various Docker and Singularity containers.
 
-Hierarchy:
+### Hierarchy
 
 - Base
   - X11Web
@@ -11,4 +11,42 @@ Hierarchy:
          - ViaLacteaVisualAnalytics
   - JupyterNotebook
   - SSH
-    - XCalc
\ No newline at end of file
+    - XCalc
+
+### Interfaces
+
+The container starts by automatically exposing their interfaces:
+
+
+ - The containers based on the X11Web container (as the desktops) expose a web-based VNC client (KasmVNC) on port 8590
+
+- The JupyterNotebook container expose the Notebook server on port 8888
+
+- The SSH container expose the OpenSSH server on port 22
+
+All the containers support changing the default port using the `BASE_PORT` environment variable.
+
+
+### Usage
+
+You can eithe directly run the containers, e.g.:
+
+    docker run -p8590:8590 git.ia2.inaf.it:5050/exact/swc/basicdesktop:v0.3.0
+ 
+ or use tham as base containers for your own ones:
+ 
+    FROM git.ia2.inaf.it:5050/exact/swc/basicdesktop:v0.3.0
+ 
+ 
+### Supported engines
+ 
+ These containers are built to be supported by nearly any container engine. These include:
+ 
+  - Docker
+  - Podman (rootful and rootless)
+  - Singularity
+ 
+ However, beware some permission errors which may arise after extending them and installing extra software, in particular with Singularity. You can add a line like this at the end of your Dockerfile to be sure the home folder is always set as writable by anyone (required for these containers to work with Singularity):
+ 
+    # Fix home permissions
+    RUN chmod 777 /home
\ No newline at end of file
-- 
GitLab