解决Use ‘docker scan‘ to run Snyk tests against images to find vulnerabilities
解决Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
·
问题
运行docker build -f Dockerfile -t quickstart:v1.0 . 的时候提示
:Use ‘docker scan’ to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Building 9.6s (11/11) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 654B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 6.8s
=> [internal] load build context 0.3s
=> => transferring context: 18.07MB 0.3s
=> [1/6] FROM docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e7251 2.4s
=> => resolve docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc53a40b044e7251 0.0s
=> => sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a 1.64kB / 1.64kB 0.0s
=> => sha256:ed73e2bee79b3428995b16fce4221fc715a849152f364929cdccdc83d 528B / 528B 0.0s
=> => sha256:a6215f271958c760a2975a6765016044115dbae4b90f414eba3a4 1.49kB / 1.49kB 0.0s
=> => sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b843 2.71MB / 2.71MB 2.2s
=> => extracting sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b84312768 0.1s
=> [2/6] WORKDIR /apps 0.0s
=> [3/6] COPY quickstart /apps/quickstart 0.0s
=> [4/6] COPY conf/app.conf /apps/conf/app.conf 0.0s
=> [5/6] RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 0.1s
=> [6/6] RUN echo 'Asia/Shanghai' >/etc/timezone 0.1s
=> exporting to image 0.1s
=> => exporting layers 0.1s
=> => writing image sha256:c8ea5e427f7f3e8cbf1185132e0f781d4d4a99478975e96a0f7a9c1 0.0s
=> => naming to docker.io/library/quickstart:v1.0 0.0s
Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
解决方法
将DOCKER扫描建议设置为false即可
export DOCKER_SCAN_SUGGEST=false
更多推荐
已为社区贡献2条内容
所有评论(0)