【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 .
相关推荐
小安运维日记12 分钟前
Linux云计算 |【第三阶段】PROJECT1-DAY1
linux·运维·云计算·apache
小的~~28 分钟前
k8s使用本地docker私服启动自制的flink集群
docker·flink·kubernetes
pyliumy29 分钟前
rsync 全网备份
linux·运维·服务器
苹果醋31 小时前
SpringCloud系列之一---搭建高可用的Eureka注册中心
运维·nginx
诚诚k1 小时前
docker存储
运维·docker·容器
sorel_ferris1 小时前
Ubuntu-24.04中Docker-Desktop无法启动
linux·ubuntu·docker
ggb19991 小时前
【python的坑】vpn下,python request报错 check_hostname requires server_hostname
linux·运维·服务器
数据智能老司机1 小时前
Kubernetes从入门到精通系列——外部 DNS 和全局负载均衡
云原生·容器·kubernetes
-SGlow-1 小时前
Linux相关概念和重要知识点(4)(自举、vim)
linux·运维·vim
多多*2 小时前
OJ在线评测系统 登录页面开发 前端后端联调实现全栈开发
linux·服务器·前端·ubuntu·docker·前端框架