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": unknownKylin Linux Advanced Server release V10 (Sword) 操作系统没有以上报错,正常生成镜像
解决办法:
卸载Kylin Linux Advanced Server release V10 (Lance) 自带的Podman, 执行 yum remove podman 后,重新build 后可以正常生成镜像