系统:麒麟V10
处理器:飞腾2000, aarch64
原因:安装算能,TPU-mlir环境产生
官方教程地址:2. 开发环境配置 — TPU-MLIR 0.7 文档 (sophgo.com)
从 DockerHub https://hub.docker.com/r/sophgo/tpuc_dev 下载所需的镜像:
docker pull sophgo/tpuc_dev:latest
产生错误
- siasun@siasun-FT-2000-4:~/docker$ docker pull sophgo/tpuc_dev:latest
- latest: Pulling from sophgo/tpuc_dev
- 72d9f18d70f3: Pull complete
- 05c84afd3b88: Extracting [==================================================>] 1.733GB/1.733GB
- ef2a1795b634: Download complete
- 7871768de6ef: Download complete
- failed to register layer: ApplyLayer exit status 1 stdout: stderr: archive/tar: invalid tar header
注册层失败:ApplyLayer退出状态1 stdout: stderr: archive/tar:无效的tar头
该谬误产生起因是应用unpigz
解压缩docker
镜像层导致的
解决方案一,挪动unpigz
可执行文件地位使其不解压
mv /usr/bin/unpigz /usr/bin/unpigz.bak
解决方案二,参考docker
官网文档,配置对应的环境变量
- vim /usr/lib/systemd/system/docker.service
- # 在Service的单元上面,减少这一行
- [Service]
- Environment="MOBY_DISABLE_PIGZ=true"
我采用的是第一种方案
再次尝试
- siasun@siasun-FT-2000-4:~/docker$ docker pull sophgo/tpuc_dev:latest
- latest: Pulling from sophgo/tpuc_dev
- 72d9f18d70f3: Pull complete
- 05c84afd3b88: Pull complete
- ef2a1795b634: Pull complete
- 7871768de6ef: Pull complete
- Digest: sha256:676f4ebcb792891de9190826b5b8ad8bc8fe3012c8cef087d5497ea2426ecd9c
- Status: Downloaded newer image for sophgo/tpuc_dev:latest
成功
参考链接:关于python:python项目适配arm架构国产麒麟系统 - 乐趣区 (lequ7.com)
标签:status,layer,complete,tar,dev,tpuc,docker,sophgo From: https://www.cnblogs.com/fanwenyan/p/18180103