🛠 Docker et conteneurs x86 sur la carte

LattePanda Alpha · avance · Schéma : IMG-lattepanda-alpha-avance-1-docker.svg — conteneurs Docker x86 64 bits s executant sur le Core m3 7Y30 de la LattePanda Alpha avec acces au reseau et a un volume SSD

Objectives

Prove the Alpha's selling point: a true laptop PC ecosystem (the official documentation cites Docker, Visual Studio, and RealSense cameras) within 115 × 78 mm. You will install Docker Engine on Linux, launch a container, mount a volume on the NVMe SSD of the M.2 M-key socket (PCIe 4×), and understand why ARM images from a Raspberry Pi do not run here (and vice versa).

Hardware

Complete code

# 1. Installer Docker Engine (dépôt officiel Docker)
curl -fsSL https://get.docker.com | sudo sh
sudo usermod -aG docker $USER   # puis se reconnecter

# 2. Vérifier l'architecture x86-64 des images
docker version
docker run --rm hello-world

# 3. Conteneur avec volume sur le stockage NVMe
sudo mkdir -p /srv/alpha-data
docker run -d --name webalpha --restart unless-stopped \
  -p 8080:80 -v /srv/alpha-data:/usr/share/nginx/html:ro nginx:alpine

# 4. Tester depuis la carte elle-même
echo "<h1>LattePanda Alpha x86</h1>" | sudo tee /srv/alpha-data/index.html
curl -s http://localhost:8080

# 5. Contrôler l'empreinte mémoire/CPU (2 coeurs / 4 threads)
docker stats --no-stream

Expected verification

docker run --rm hello-world displays the success message for the amd64 architecture; curl http://localhost:8080 returns the page served by nginx; docker stats shows the actual footprint on the 2 cores of the m3-7Y30. Since this is standard x86-64, the same images as on a desktop PC run without recompilation.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials