Added docker to service management

This commit is contained in:
Chirag Aggarwal
2019-01-08 18:09:24 +00:00
parent 27b3cd18bb
commit ebc467a517
6 changed files with 54 additions and 13 deletions

View File

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