查看: 83|回复: 0

银河麒麟V10操作系统Kylin Linux Advanced Server release V10 (Lance)版本 docker build时报错

[复制链接]

1

主题

0

回帖

0

积分

积极分子

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2008-6-2
发表于 2023-12-8 09:52:00 | 显示全部楼层 |阅读模式

 

Kylin Linux Advanced Server release V10 (Lance)  docker build 时报如下错误:

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  204.6MB
Step 1/7 : FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
 ---> af095315a4eb
Step 2/7 : WORKDIR /app
 ---> Using cache
 ---> 3b8547702717
Step 3/7 : COPY . .
 ---> Using cache
 ---> 85c3058957e7
Step 4/7 : ENV TZ=Asia/Shanghai
 ---> Using cache
 ---> 83c659472410
Step 5/7 : RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 ---> Running in 03ccb35ecf5d
failed to create task for container: failed to create shim task: OCI runtime create failed: container_linux.go:318: starting container process caused "permission                          denied": unknown

Kylin Linux Advanced Server release V10 (Sword)  操作系统没有以上报错,正常生成镜像

解决办法:

卸载Kylin Linux Advanced Server release V10 (Lance) 自带的Podman, 执行  yum remove podman 后,重新build 后可以正常生成镜像

 



来源:https://www.cnblogs.com/gaojd/p/17884516.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部