Home > Mobile >  Socket on docker
Socket on docker

Time:04-08

I have written 3 pyhton script working on local and connected with socket.

I want to create docker containers for each script (one script = one container). But when I lauch the first one (just listenning on socket) i have this error :

JOB START
Traceback (most recent call last):
  File "/demo/classifier.py", line 35, in <module>
    socket.connect("tcp://%s:%s" % (config["SOCKET"]["Hostname"], config["SOCKET"]["PortDetection"]))
  File "/opt/conda/lib/python3.9/configparser.py", line 963, in __getitem__
    raise KeyError(key)
KeyError: 'SOCKET'

CodePudding user response:

I haven't the right in the config file

  • Related