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

相关推荐
.柒宇.2 小时前
AI掘金头条项目-K8s部署实战教程
python·云原生·容器·kubernetes·fastapi
杨浦老苏10 小时前
自托管网页EPUB阅读器Codexa
docker·群晖·电子书·calibre·opds
杨浦老苏11 小时前
开源文件协作平台OpenCloud
docker·文件管理·群晖·协作
weixin_3776348413 小时前
【MinerU】 Docker Compose 使用
docker·容器·mineru
庚昀◟14 小时前
腾讯云 CVM + Docker + Jenkins + GitLab CI/CD 全流程指南(python、flask实现简单计算器)
python·ci/cd·docker·flask·jenkins
PH = 714 小时前
K8S集群的搭建
云原生·容器·kubernetes
SNOWPIAOP15 小时前
DOCKER的一些有用命令
docker
叶 落15 小时前
Ubuntu 通过 Docker 安装 Mysql8
linux·ubuntu·docker
赵文宇(温玉)15 小时前
Docker Compose 安装 Etcd
docker·容器·etcd
likeGhee15 小时前
docker创建nginx+keepalived+nacos集群(仅测试环境)
nginx·docker