【Docker】解决 docker build 提示 `Wrong architecture ‘amd64‘`

解决 docker build 提示 Wrong architecture 'amd64'

使用 securify2 的 docker 版本进行 sc 安全扫描

  • 执行语句 RUN wget https://github.com/souffle-lang/souffle/releases/download/1.6.2/souffle_1.6.2-1_amd64.deb -O /tmp/souffle.deb &&\ gdebi --n /tmp/souffle.deb
text 复制代码
Reading package lists... Done
Building dependency tree        
This package is uninstallable0%
#8 10.68 Wrong architecture 'amd64' -- Run dpkg --add-architecture to add it and update afterwards
Reading state information... Done
------
executor failed running [/bin/sh -c wget https://github.com/souffle-lang/souffle/releases/download/1.6.2/souffle_1.6.2-1_amd64.deb -O /tmp/souffle.deb &&        gdebi --n /tmp/souffle.deb]: exit code: 1

解决: 加上参数 --platform=linux/amd64

  • docker build --platform=linux/amd64 -t securify .
相关推荐
IT成长日记3 分钟前
【Linux基础】Linux系统管理:GPT分区实践详细操作指南
linux·运维·服务器·gpt·parted·磁盘分区·fdisk
爱喝水的鱼丶24 分钟前
SAP-ABAP: ABAP ASSIGN COMPONENT 语句详解:动态字段符号的利器作用用法示例详解
运维·开发语言·sap·abap·开发经验·动态字段符号
Dxy123931021632 分钟前
Docker常用命令详解
docker·容器·eureka
清寒敲代码35 分钟前
k8s核心技术-Helm
运维·容器·kubernetes
quqi9936 分钟前
Enable FIPS in ubuntu (by quqi99)
linux·运维·ubuntu
魏 无羡37 分钟前
k8s 获取真实ip地址
tcp/ip·容器·kubernetes
人工智能训练师41 分钟前
在Ubuntu中如何使用PM2来运行一个编译好的Vue项目
linux·运维·服务器·vue.js·ubuntu·容器
程序媛Dev1 小时前
50.4k Star!我用这个神器,在五分钟内搭建了一个私有 Git 服务器!
运维·服务器·git
IvanCodes1 小时前
六、Docker 核心技术:Dockerfile 指令详解
java·数据库·docker
阿小木的愤怒2 小时前
详细解读Docker
docker·容器·容器化·虚拟化技术