Dockerfile:
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install software-properties-common -y
RUN add-apt-repository ppa:mrazavi/gvm && apt install gvm -y
在Raspbian中使用Docker进行构建时,会发生以下错误:
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package gvm
The command '/bin/sh -c add-apt-repository ppa:mrazavi/gvm && apt install gvm -y' returned a non-zero code: 100
构建命令:
docker build --no-cache -t openvas .
在macOS上,构建始终可以。
答案 0 :(得分:1)
这是由于您尝试使用的映像或程序包未跨平台编译引起的。
您需要检查依赖项或尝试使用其他FROM映像以使用其他体系结构进行测试。