Hi,
I'm using the OWASP ZAP Docker Image(owasp/zap2docker-stable) and running an authenticated scan by creating a python container, i don't have any issues with pulling the zap and building the python container but when i run the following command to execute scan I'm receiving connection refused error at zap.core.new_session.
Command: docker run -i --rm --name dustin -v zapshare:/usr/src/app -w /usr/src/app python3:zapv2 python authscan.py
Error: Traceback (most recent call list)
File "usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 156, in _new_conn
conn = connection.create_connection(
File "usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionrefusedError: [Errno 111] Connection refused
Docker File(Python)
Dockerfile:
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["echo", "Hello Python3!"]
Can anyone suggest how to overcome this error.
Thanks
Archi