code: def connect(self):
          
          try:
              ret = docker.from_env()
          except Exception as e:
              logger.error("docker plugin - Can not connect to Docker ({})".format(e))
              ret = None
  
          return ret
docs: Connect to the Docker server.