From c6a94c37685544f7fa8af3d2a2f47cdd391fc648 Mon Sep 17 00:00:00 2001
From: FrancescoFdd5 <francesco.fdd5@gmail.com>
Date: Wed, 8 Jan 2020 16:41:56 +0100
Subject: [PATCH] Updated Docker Installation (textile)

---
 Docker-Installation.textile | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/Docker-Installation.textile b/Docker-Installation.textile
index 36b54fc..6858495 100644
--- a/Docker-Installation.textile
+++ b/Docker-Installation.textile
@@ -3,9 +3,13 @@ Install Docker(on host or guest) : "Docker Installation Guide":https://docs.dock
 
 Steps:
 # Install git, python
-# <pre><code>git clone https://github.com/retspen/webvirtcloud.git</code></pre>
-# <pre><code>cd webvirtcloud/</code></pre>
-# <pre><code>cp webvirtcloud/settings.py.template webvirtcloud/settings.py</code></pre>
+<pre><code>sudo apt install git python</code></pre>
+# Clone from repository
+<pre><code>git clone https://github.com/retspen/webvirtcloud.git</code></pre>
+# Move to the installation folder
+<pre><code>cd webvirtcloud/</code></pre>
+# Copy the setting.py file
+<pre><code>cp webvirtcloud/settings.py.template webvirtcloud/settings.py</code></pre>
 # Generate random number using Python:
 <pre><code>
 import random, string
@@ -13,8 +17,10 @@ haystack = string.ascii_letters + string.digits + string.punctuation
 print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
 </code></pre>
 # copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = ''
-# <pre><code>docker build -t retspen/webvirtcloud:0.1 .</code></pre>
-# <pre><code>docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1</code></pre>
+# Build the docker container
+<pre><code>docker build -t retspen/webvirtcloud:0.1 .</code></pre>
+# Start the container. *Use this command only for the first start* 
+<pre><code>docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1</code></pre>
 # Run browser enter host url with http.
 # Login with: Username admin, password admin
 # Change your admin password
@@ -23,10 +29,10 @@ print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
 ***
 
 Additional Information:
-# docker run command creates new container from base image.
-# to stop docker container use:  
+# Docker run command creates new container from base image.
+# To stop docker container use:  
 <pre><code>docker stop <container id></code></pre>
-# to get cointainer id use:
+# To get cointainer id use:
 <pre><code>docker ps -a
 or
 docker container ls</code></pre>