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

相关推荐
xinyu39111 分钟前
旧版Ubuntu Docker镜像 apt 失败
linux·ubuntu·docker
bin91531 小时前
使用Docker安装github项目 源码中含有 docker-compose.yml
docker·eureka·github
weixin_307779132 小时前
Linux下Docker Compose里运行Milvus向量数据库故障诊断Shell脚本
linux·运维·数据库·docker·milvus
SuperherRo2 小时前
云上攻防-云原生篇&Docker安全&Dockfile文件构建制作&不安全的镜像&不安全第三方组件
docker·dockerfile·不安全镜像·第三方组件
Zhu7582 小时前
在Docker环境部署ApacheGuacamole,对接MySQL数据库
运维·docker·容器
慧一居士5 小时前
K3s和K8s的区别
容器
扶疏52519 小时前
Kubernetes Dashboard、动态卷供应、StatefulSet
容器·kubernetes
是摆烂第一名呀20 小时前
【rk3506】U-Boot串口时钟未配置,导致串口彻底失效
linux·arm开发·驱动开发·嵌入式硬件
云烟成雨TD1 天前
Kubernetes 系列【14】对象元数据:标签、标签选择器、命名空间、字段选择器
云原生·容器·kubernetes