From c6a94c37685544f7fa8af3d2a2f47cdd391fc648 Mon Sep 17 00:00:00 2001 From: FrancescoFdd5 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 -#
git clone https://github.com/retspen/webvirtcloud.git
-#
cd webvirtcloud/
-#
cp webvirtcloud/settings.py.template webvirtcloud/settings.py
+
sudo apt install git python
+# Clone from repository +
git clone https://github.com/retspen/webvirtcloud.git
+# Move to the installation folder +
cd webvirtcloud/
+# Copy the setting.py file +
cp webvirtcloud/settings.py.template webvirtcloud/settings.py
# Generate random number using Python:

 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)]))
 
# copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = '' -#
docker build -t retspen/webvirtcloud:0.1 .
-#
docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1
+# Build the docker container +
docker build -t retspen/webvirtcloud:0.1 .
+# Start the container. *Use this command only for the first start* +
docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1
# 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:
docker stop 
-# to get cointainer id use: +# To get cointainer id use:
docker ps -a
 or
 docker container ls