簡體   English   中英

運行 docker 掃描<img>在 ubuntu 20.04 返回錯誤

[英]Running docker scan <image> returns an error on ubuntu 20.04

當我嘗試使用docker scan hello-world掃描本地圖像(如 hello-world 圖像)時,出現此錯誤

docker: 'scan' is not a docker command.
See 'docker --help'

我的 docker 版本是

Client: Docker Engine - Community
 Version:           20.10.2
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        2291f61
 Built:             Mon Dec 28 16:17:43 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

當我嘗試使用docker scan hello-world掃描本地圖像(如 hello-world 圖像)時,我收到此錯誤

docker: 'scan' is not a docker command.
See 'docker --help'

我的 docker 版本是

Client: Docker Engine - Community
 Version:           20.10.2
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        2291f61
 Built:             Mon Dec 28 16:17:43 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

有一個插件可用:

要求: apt 了解 docker-repositories

按照https://docs.docker.com/engine/install/ubuntu/上的安裝指南進行操作后,這應該已經完成

例子:

$ cat /etc/apt/sources.list.d/docker.list 
deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable

安裝:

$ sudo apt update
$ sudo apt install docker-scan-plugin

運行docker scan將顯示更多要求:

  • 登錄 Docker 中心
  • 同意訪問 Snyk (有關更多信息,請在 web 中搜索docker Snyk 。)
$ docker scan hello-world
Docker Scan relies upon access to Snyk, a third party provider, do you consent to proceed using Snyk? (y/N)
y
failed to get DockerScanID: You need to be logged in to Docker Hub to use scan feature.
please login to Docker Hub using the Docker Login command

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM