docker直接运行arm下的docker

运行环境是树莓派A+ 处理器是 arm32v6

安装了docker,运行lamp

编译安装php的时候发现要按天来算,于是用电脑vm下的Ubuntu系统运行arm的docker

然后打包到a+直接导入运行就可以了

第一种方法

sudo apt install qemu-user-static

导入直接运行就可以了

第二种方法运行arm的docker

wget -c https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-aarch64-static

其他架构

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-arm-static

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-mips-static

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-mips64-static

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-mipsel-static

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-ppc64-static

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-s390x-static

https://github.com/multiarch/qemu-user-static/releases/download/v7.2.0-1/qemu-x86_64-static

17:37 2025/1/31

chmod +x qemu-aarch64-static

chmod +x qemu-arm-static

docker run -d \

--rm \

--platform arm \

-v $(pwd)/qemu-arm-static:/usr/bin/qemu-arm-static \

--name t02 \

pia4:v01 \

sleep 315360000

docker exec -it t02 /bin/bash

相关推荐
Freshman小白11 小时前
python算法打包为docker镜像(边缘端api服务)
python·算法·docker
麦兜*11 小时前
Spring Boot 应用 Docker 监控:Prometheus + Grafana 全方位监控
spring boot·后端·spring cloud·docker·prometheus
爱吃糖的小秦同学11 小时前
Docker爆红且安装非C盘处理方案
运维·docker·容器
森G11 小时前
四、Linux设备驱动介绍
linux·arm开发·ubuntu
GilgameshJSS11 小时前
STM32H743-ARM例程36-DNS
c语言·arm开发·stm32·单片机·嵌入式硬件
!chen11 小时前
k8s-应用部署和组件及常用命令
云原生·容器·kubernetes
亿牛云爬虫专家12 小时前
用 Playwright + 容器化做分布式浏览器栈:调度、会话管理与资源回收
分布式·docker·容器·浏览器·爬虫代理·新闻网站·playwright
tnan252213 小时前
基于阿里云效实现cicd记录
阿里云·ci/cd·docker·容器·自动化
wearegogog12313 小时前
用docker搭建selenium grid分布式环境
分布式·selenium·docker
lijun_xiao200914 小时前
DevOps(devops/k8s/docker/Linux)学习笔记-4
docker·kubernetes·devops