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

相关推荐
万物更新_12 分钟前
Docker
docker
二猛子8 小时前
Linux(Centos版本)中安装Docker
linux·docker·centos
记得开心一点嘛9 小时前
Docker compose 部署微服务项目(从0-1出发纯享版无废话)
docker·容器·eureka
猿小猴子10 小时前
在 Ubuntu24.04 LTS 上 Docker 部署英文版 n8n 和 部署中文版 n8n-i18n-chinese
docker·容器·n8n
io无心10 小时前
Docker绑定端口报错
运维·docker·容器
zxnbmk11 小时前
pod内部共享命名空间与k8s命名空间是一个东西吗?
云原生·容器·kubernetes·namespaces
cherishSpring13 小时前
在windows使用docker打包springboot项目镜像并上传到阿里云
spring boot·docker·容器
LKAI.13 小时前
k8s存储动态供给StorageClass
docker·微服务·云原生·容器·kubernetes
你可以叫我仔哥呀14 小时前
k8s学习记录(五):Pod亲和性详解
学习·容器·kubernetes
马武寨山的猴子14 小时前
【MinerU】:一款将PDF转化为机器可读格式的工具——RAG加强(Docker版本)
人工智能·docker·容器·pdf·rag