【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 .
相关推荐
KYGALYX19 分钟前
在Linux中备份msyql数据库和表的详细操作
linux·运维·数据库
余—笙1 小时前
Linux(docker)安装搭建CuteHttpFileServer/chfs文件共享服务器
linux·服务器·docker
lang201509281 小时前
Linux高效备份:tar与gzip完全指南
linux·运维·服务器
wanhengidc2 小时前
云手机的基本原理
运维·服务器·游戏·智能手机·云计算
篙芷2 小时前
两台服务器 NFS 共享目录实战
运维·服务器
芥子沫2 小时前
《玩转Docker》[应用篇13]:Docker安装部署Emby及使用技巧:家庭媒体服务器
docker·视频·emby
Hard but lovely2 小时前
linux: centos 软件包管理 yum源
linux·运维·centos
2301_816073832 小时前
Chrony服务器
运维·服务器
熙客3 小时前
Kubernetes是如何保证有状态应用数据安全和快速恢复的
mysql·云原生·容器·kubernetes
学网络的APang3 小时前
Apache HTTP Server 2.4.65 详细安装教程(基于 CentOS 7)
运维·网络