unpacking error : failed to extract…: failed to convert whiteout file… operation not permitted
问题背景:
使用ctr image import命令时报错
ctr: failed to extract layer sha256:6210ac50e254e8d12e577c88949781cf7dc7ba478823585db78d6a75d13cf07f: failed to convert whiteout file “var/lib/yum/yumdb/b/.wh.c86d3b3e8d9578a800202b88edf48aecf5aec20a-bind-license-9.9.4-61.el7-noarch”: operation not permitted: unknown
问题解决:
添加关键字 --no-unpack
OPTIONS:
--base-name value base image name for added images, when provided only images with this name prefix are imported
--digests whether to create digest images (default: false)
--skip-digest-for-named skip applying --digests option to images named in the importing tar (use it in conjunction with --digests)
--index-name value image name to keep index as, by default index is discarded
--all-platforms imports content for all platforms, false by default
--platform value imports content for specific platform
--no-unpack skip unpacking the images, false by default
--compress-blobs compress uncompressed blobs when creating manifest (Docker format only)
--snapshotter value snapshotter name. Empty value stands for the default value. [$CONTAINERD_SNAPSHOTTER]