1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-02-23 21:05:17 +00:00

Updated Docker Installation (textile)

FrancescoFdd5 2020-01-08 16:41:56 +01:00
parent fcb3184eed
commit c6a94c3768

@ -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>