Bug fixes

This commit is contained in:
Chirag Aggarwal
2019-01-08 12:30:13 +00:00
parent 7fd361bb34
commit cce16e895b
36 changed files with 2648 additions and 65 deletions

View File

@@ -32,6 +32,7 @@ def preDockerRun(function):
return render(request, 'dockerManager/install.html', {'status':admin.type, 'conErr':0})
# Check if docker is running and we are able to connect
try:
client = docker.from_env()
client.ping()

View File

@@ -109,7 +109,7 @@
</div>
<div class="col-md-offset-3">
<div ng-hide="installationDetailsForm" class="col-md-offset-3">
<button type="button" class="btn btn-info" ng-click="addEnvField()">Add more</button>
</div><br>
<div ng-hide="installationDetailsForm" class="form-group">

View File

@@ -13,8 +13,6 @@ import json
import requests
import docker
# Use default socket to connect
client = docker.from_env()
# Create your views here.
# This function checks if user has admin permissions