在GitLab中导入ZAP Docker映像

我正在尝试在我的GitLab存储库中使用ZAP。 (链接到ZAP的docker映像:https://github.com/zaproxy/zaproxy/wiki/Docker

但是在执行“ yml”文件中的脚本时,出现了“代理”错误,现在,经过一些修改,我得到了这个错误:

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.

是否有人已经遇到了相同的问题,或者知道我该如何解决? 谢谢大家

tdkimo 回答:在GitLab中导入ZAP Docker映像

尝试将这些添加到您的Dockerfile:

ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ARG LC_ALL=C.UTF-8
ARG LANG=C.UTF-8

请参阅this

更新

尝试以下操作:

docker run -i -e LC_ALL=C.UTF-8 -e LANG=C.UTF-8 owasp/zap2docker-weekly zap-cli active-scan targetwebsite
本文链接:https://www.f2er.com/3139458.html

大家都在问