文章目录
- 前言
- 一、拉取镜像
- 二、安装到nas中
- 总结
前言
群晖nas的docker注册表被墙,用Mac电脑的docker拉取镜像并安装到nas中
一、拉取镜像
群晖nas的架构师x86,Mac电脑的架构师arm。
在mac电脑中执行命令:
# 镜像拉取
docker pull --platform=linux/amd64 python:3.11.12-slim
# 镜像导出,python-3.11.12-slim.tar是导出的tar包名,python:3.11.12-slim是要导出的镜像
docker save -o python-3.11.12-slim.tar python:3.11.12-slim
二、安装到nas中
总结
曲线救国,不想折腾其他的方法。