1. Home
  2. Docs
  3. docker
  4. FAQ

FAQ

Q: Use ‘docker scan’ to run Snyk tests against images to find vulnerabilities and learn how to fix them

  • mac os 10.14.6
  • docker 20.10.8

问题描述:在mac os中构建镜像时出现错误

$ docker build .
[+] Building 0.3s (6/6) FINISHED
 => [internal] load build definition from Dockerfile                       0.1s
 => => transferring dockerfile: 191B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/golang:1.16.12          0.0s
 => [1/2] FROM docker.io/library/golang:1.16.12                            0.0s
 => CACHED [2/2] RUN apt-get update && apt-get install -y gdb              0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:17536face052573ae260e202eed305d16dc905a52ac43  0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

处理方法

临时关闭Snyk tests $ DOCKER_SCAN_SUGGEST=false docker build . -t [name]

添加到脚本中: ~/.bash_profile or ~/.bashrc

参考资料


docker pull 地址转移了 read: connection reset by peer

[root@localhost kafka]# docker pull confluentinc/cp-zookeeper:6.1.1
Error response from daemon: Head https://registry-1.docker.io/v2/confluentinc/cp-zookeeper/manifests/6.1.1: read tcp 192.168.2.27:60944->54.85.56.253:443: read: connection reset by peer

vbox中使用CentOS docker pull无法拉取镜像

以前一直在ubuntu中使用没有出现过这个问题 最近切换到CentOS就经常出现, 使用国内镜像源. 一开始是修改/etc/docker/daemon.json这个文件然后重启就可以使用 但是过几个小时又不行了 每次都要修改然后重启 后面修改重启也不可以了. 搜索了一遍有的说vbox的问题,有的说需要改hosts映射到指定IP. 2021年07月15日16:45:54

最后处理方式: 通过代理方式

Articles

Was this article helpful to you? Yes No

How can we help?