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

相关推荐
Tummer836322 分钟前
Docker迁移(N8N项目)
docker·容器
陈平安Java and C42 分钟前
Docker Compose容器编排
docker
江湖有缘1 小时前
Docker一键部署docat:打造轻量级开源文档管理系统
docker·容器·开源
Tummer83631 小时前
Docker+n8n全流程配置和部署(N8N部署流程)
运维·docker·容器
Lam㊣2 小时前
Centos 7 系统docker pull 设置代理
docker·eureka·centos
程序员老赵2 小时前
PyTorch Docker 容器化部署与生产运行实践
pytorch·docker·容器
lewis_lk2 小时前
docker-compose部署mysql&redis
后端·docker
伞啊伞2 小时前
k8s(五)集群调度与PV和PVC
云原生·容器·kubernetes
海鸥812 小时前
K8s 的 command/args 会覆盖 Dockerfile 的 CMD/ENTRYPOINT
云原生·容器·kubernetes
江湖有缘2 小时前
Mikochi + Docker:打造属于你的私有云文件浏览器
运维·docker·容器