惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MongoDB | Blog
MongoDB | Blog
Recorded Future
Recorded Future
Jina AI
Jina AI
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
博客园 - 【当耐特】
雷峰网
雷峰网
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
有赞技术团队
有赞技术团队
L
Lohrmann on Cybersecurity
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Hacker News - Newest:
Hacker News - Newest: "LLM"
NISL@THU
NISL@THU
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog RSS Feed
Cyberwarzone
Cyberwarzone
K
Kaspersky official blog
F
Full Disclosure
Martin Fowler
Martin Fowler
Spread Privacy
Spread Privacy
D
Docker
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page

博客园 - 不懂123

kafka添加用户管理认证 nodejs升级管理 elastic定时清除索引数据 sftp集成设置 kafka3.9集群部署 nginx扩展编译模块 rancher kafka部署 JumpServer使用示例 rancher kafka多监听配置 jenkins远程动态打包镜像 docker镜像仓库清理迁移 elastic单机多节点集群搭建 fastdfs编译升降版本 监控系统搭建集成实例 rancher服务启动异常 linux使用ssh免密连接windows主机 jenkins pipeline搭建 fastdfs系统异常 mongodb集群用户管理
docker跨平台构建镜像
不懂123 · 2025-06-27 · via 博客园 - 不懂123

amd和arm架构

         docker hub中每个镜像基本都提供了两种不同的cpu架构

          

         

         下载镜像的指定架构版本到本地,可以通过DIGEST这个值来下载,否则下载的是当前系统的架构版本

          docker pull telicent/telicent-python3.11  下载当前宿主机cpu架构的镜像

          docker pull telicent/telicent-python3.11@sha256:57902d0f4aed717362699687c7eeab8a2a7a4844493ae219d7b57e85bdebf77a

         

  镜像构建

         arm的docker镜像无法在amd的宿主机上启动,必须在arm架构主机上运行

       

        在arm主机上构建

      

       自定义镜像操作

     

 docker cp /root/LLM_BigData_Classify/LLM_BigData_Classify 2f5800c17ac4:/home/user/
 cd LLM_BigData_Classify/
 (app-venv) [user@2f5800c17ac4 LLM_BigData_Classify]$ pip3 install -r requirements.txt -i https://pypi.doubanio.com/simple/
 pip3 install -r requirements.txt -i https://pypi.doubanio.com/simple/
 docker commit 2f5800c17ac4 bigdata:v1
 docker save -o bigdata.tar a2f523be3064
 gzip bigdata.tar

 docker run --network=host  -ti bigdata:v1 /bin/sh /home/user/LLM_BigData_Classify/startweb.sh
 docker inspect your-image:tag | grep "Architecture"

View Code

    定制镜像打包成功