mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-08-30 11:17:57 +02:00
Bug fixes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user