慣性聚合 高效追讀感興趣之博客、新聞、科技資訊
閱原文 以慣性聚合開啟

推薦訂閱源

L
LangChain Blog
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
J
Java Code Geeks
Recent Announcements
Recent Announcements
The Cloudflare Blog
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
Vercel News
Vercel News
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
雷峰网
雷峰网
H
Help Net Security
博客园 - Franky
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
博客园_首页
C
Check Point Blog
腾讯CDC
美团技术团队
Martin Fowler
Martin Fowler
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
U
Unit 42
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Engineering at Meta
Engineering at Meta
M
Microsoft Research Blog - Microsoft Research
阮一峰的网络日志
阮一峰的网络日志
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
云风的 BLOG
云风的 BLOG
H
Hackread – Cybersecurity News, Data Breaches, AI and More
李成银的技术随笔
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

DEV Community

Building EIDOLON OS — A Local-First AI Cognitive Operating System qrrot - database with AI I Built a Local Gemma 4 Reviewer for Merchant Registry Evidence Compass v1.1.0 · we shipped a memory plugin that catches its own consumption drift How to build your first MCP server in 10 minutes Expo SDK 56 Is Out, and a Few Things Finally Clicked Into Place Building a 100ms Browser-Native WebSocket Clipboard Why Claude Code Sessions Diverge: A Mechanism Catalog When One AI Agent Is Not Enough: A Practical Delegation Pattern for Enterprise Systems Cómo solucionar el bucle infinito en `useEffect` con objetos y arrays 🛢️ The Dangote Chain: What a Blockchain-Native Refinery IPO Would Look Like Build a "Where to Watch" feature in 50 lines with the StreamWatchHub API Gemma 4 on Android: Tricks for Faster On-Device Inference Your AI agent has amnesia. You've just normalized it. 🚀 Reviving My Women Safety System – From Idea to Real-Time Smart Safety Solution I built an AI that reviews every PR automatically (because nobody was reviewing mine) 🌿 Git Mastery: The Complete Developer Guide Bringing Gemma 4 E2B to the Edge: Building a Privacy-First Dream Analyzer with Flutter & LiteRT Google I/O 2026 Wasn’t About Features — It Was About AI Becoming the Developer Environment Building an AI Vedic Astrology App in 25 Days — What Actually Worked (and What Didn't) Hermes Agent Has Four Memories — And That's Why It Doesn't Forget You Pressure Isn't Killing You -Your Relationship With It Is 🐳 How to Run Any Project in Docker: A Complete Guide AccessLens — a blind person's lanyard, powered by Gemma 4 on-device Glyph v0.2: the release is the joinery How I Built a Blazingly Fast, Privacy-First Batch Image Converter in the Browser Using OPFS and Web Workers Cómo solucionar \"Text content does not match server-rendered HTML\" en Next.js App Router FCoP 3.0: Why AI Agents Need a Track, Not a Brake Fibonacci: Quiz app which anyone can make revenue by viewing ads to the quiz contestants. The Subconscious Powered by Edge AI GPU Utilization Is Becoming the New Cloud Waste Crisis Cómo solucionar `docker run` con exit code 1 en Raspberry Pi JWT is a scam and your app doesn't need it 7 Agent Skill Packs That Actually Make AI Coders Better More Control, More Cost: Why Commanding AI Isn't Delegation SecureScan Synthadoc: We Built an AI Judge for Our AI Wiki Compiler - Here's What We Learned Cómo solucionar el error de permiso al ejecutar `pip.exe` en entorno virtual (Python 3.10 en Windows) Postgres-grade Serializable at 20k+ ops/s — on a laptop. Don’t try this at home. Pure Core, Imperative Shell in Rust with Stillwater Lean 4 for Programmers: Building a Todo List with Proof Trustless Bug Bounty Releases with a PoW-Gated DLC Oracle Building Autonomous DevOps Agents with MCP and LangChain Multimodal Gemma 4 Visual Regression & Patch Agent Git Time Machine — How Version Control Can Save Your Project My Dad Got an Electricity Bill He Couldn't Understand. Google I/O 2026 Just Made That Problem Solvable. My Dad Got an Electricity Bill He Couldn't Understand. Google I/O 2026 Just Made That Problem Solvable. Read Replicas Lie About Consistency. 4 Sync Modes Behind the Lie. Reviving My Coding Project with GitHub Copilot I Tried Gemini 3.5 Flash After Google I/O 2026 - Here is What I Found :))
如何解 Raspberry Pi 上 `docker run` 之 `Exited (1)` 状态
Erick Eduard · 2026-05-24 · via DEV Community

Erick Eduardo Ramos

docker run何以解之?以Exited (1)于Raspberry Pi乎?

Exited (1)之误,示主程于容器中骤终,而得误码(一者,通误也)。于Raspberry Pi,此非Docker之弊,实乃容器之构架与器之硬件不协之患也。

诊其本源

尔之影像myimage盖为异构之架构所铸(x86_64/amd64),而树莓派则用ARM(常为arm32v7arm64v8)。当Docker欲于ARM上无模拟地运行x86_64之可执行文件,其内核遂发异常之警。SIGILL,致令进程以码1告终。

✅ 君之察得:于VM(x86_64)运行无碍,然于Pi实体(ARM)辄败。

🛠️ 终极之策

选一:为ARM构建镜像(所荐)

  1. 审汝Raspberry Pi之架构
   uname -m
   # Salida típica: armv7l (32-bit) o aarch64 (64-bit)

入全景模式 退出全屏模式

  1. 以正确架构构建你的图像:
   # Para Raspberry Pi 3/4 (32-bit, la mayoría de instalaciones)
   docker build --platform linux/arm/v7 -t myimage:latest .

   # Para Raspberry Pi 4/5 con sistema 64-bit
   docker build --platform linux/arm64 -t myimage:latest .

进入全屏模式 退出全屏模式

  1. 在原始命令中不变地执行:
   docker run --net=host -d -t myimage

进入全屏模式 退出全屏模式

选项二:以QEMU为器以拟(若难复建)

若无 Dockerfile 之途或难复建:

# Instala soporte para múltiples arquitecturas
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

# Ejecuta con arquitectura forzada
docker run --platform linux/amd64 --net=host -d -t myimage

全屏模式入 全屏模式出

⚠️ 严注 :此器甚缓 于 Raspberry Pi 上,非生产所宜。唯调试可用.

选项三:实时察错

施用前述之策, 必先录其真误

docker run --net=host -t myimage
# (elimina -d para ver logs en tiempo real)

全屏模式入 全屏模式出

亦检视死后之日志。

docker logs <container_id>

入全屏模式 出全屏模式

💡 诀窍:自Dockerfile避此患

Dockerfile首,增此指令,以保兼容:

# Al inicio del Dockerfile
ARG TARGETARCH
FROM --platform=linux/$TARGETARCH base-image

入全屏模式 出全屏模式

且恒以之构建:

docker build --platform linux/arm/v7 -t myimage .

入全屏模式 退出全屏模式

最终验证: 运行docker inspect myimage | grep -i architecture,并确认其与arm(非amd64)相符。


预期结果: 容器应无立即退出。若错误依旧,检视entrypoint执行权限及原生依赖(如库文件)。.so 编译于 x86)。