惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
D
DataBreaches.Net
J
Java Code Geeks
月光博客
月光博客
MyScale Blog
MyScale Blog
博客园 - Franky
Jina AI
Jina AI
量子位
博客园 - 聂微东
博客园 - 叶小钗
M
MIT News - Artificial intelligence
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
博客园 - 【当耐特】
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
小众软件
小众软件
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
博客园_首页

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Cómo solucionar `docker run` con `Exited (1)` en Raspberr...
Erick Eduard · 2026-05-24 · via DEV Community

Erick Eduardo Ramos

Cómo solucionar docker run con Exited (1) en Raspberry Pi

El error Exited (1) indica que el proceso principal del contenedor terminó inmediatamente con un código de error (1 = error genérico). En Raspberry Pi, esto no es un bug de Docker, sino un problema de compatibilidad entre la arquitectura del contenedor y el hardware del dispositivo.

🔍 Causa raíz

Tu imagen myimage probablemente fue construida para una arquitectura diferente (x86_64/amd64), mientras que Raspberry Pi usa ARM (normalmente arm32v7 o arm64v8). Cuando Docker intenta ejecutar binarios x86_64 en ARM sin emulación, el kernel lanza una excepción SIGILL (instrucción ilegal), causando que el proceso salga con código 1.

✅ Confirmado por tu hallazgo: funciona en la VM (x86_64) pero falla en el Pi físico (ARM).

🛠️ Solución definitiva

Opción 1: Construir la imagen para ARM (recomendado)

  1. Verifica la arquitectura de tu Raspberry Pi:
   uname -m
   # Salida típica: armv7l (32-bit) o aarch64 (64-bit)

Enter fullscreen mode Exit fullscreen mode

  1. Construye tu imagen usando la arquitectura correcta:
   # 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 .

Enter fullscreen mode Exit fullscreen mode

  1. Ejecuta sin cambios en el comando original:
   docker run --net=host -d -t myimage

Enter fullscreen mode Exit fullscreen mode

Opción 2: Usar QEMU para emulación (si no puedes reconstruir)

Si no tienes acceso al Dockerfile o no puedes reconstruir:

# 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

Enter fullscreen mode Exit fullscreen mode

⚠️ Nota crítica: Esta opción es muy lenta en Raspberry Pi y no es recomendable para producción. Solo úsala para depuración.

Opción 3: Verifica el error en tiempo real

Antes de aplicar cualquiera de las soluciones anteriores, captura el error real:

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

Enter fullscreen mode Exit fullscreen mode

O revisa el log post-mortem:

docker logs <container_id>

Enter fullscreen mode Exit fullscreen mode

💡 Pro-tip: Evita este problema desde el Dockerfile

Agrega esta directiva al inicio de tu Dockerfile para asegurar compatibilidad:

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

Enter fullscreen mode Exit fullscreen mode

Y construye siempre con:

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

Enter fullscreen mode Exit fullscreen mode

Verificación final: Ejecuta docker inspect myimage | grep -i architecture y confirma que coincida con arm (no amd64).


Resultado esperado: El contenedor se ejecutará sin salir inmediatamente. Si persiste el error, revisa permisos de ejecución del entrypoint y dependencias nativas (como librerías .so compiladas para x86).