问题
I'm trying to use ZAP in my GitLab repository. (link to the docker image for ZAP: https://github.com/zaproxy/zaproxy/wiki/Docker)
But during the execution of the script in the 'yml' file, I got the 'proxy' error, now instead, after some modifications, I get this error:
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 621, in main
raise RuntimeError ('Click will abort further execution'
RuntimeError: Click will abort further execution because Python is configured to use ASCII as encoding for the environment. Either switch to Python 2 or consult http://click.pocoo.org/python3/ for mitigation steps.
Has anyone already had the same problem or knows how I could solve it? Thank you all
回答1:
try to add those to your Dockerfile:
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ARG LC_ALL=C.UTF-8
ARG LANG=C.UTF-8
see this
Update
try the following:
docker run -i -e LC_ALL=C.UTF-8 -e LANG=C.UTF-8 owasp/zap2docker-weekly zap-cli active-scan targetwebsite
来源:https://stackoverflow.com/questions/58762658/import-zap-docker-image-in-gitlab