containers/buildah

unsupported MIME type for compression: application/vnd.docker.image.rootfs.diff.tar.gzip

cforce opened this issue · 5 comments

buildah build $BUILD_ARGS $IMAGE_LABELS -t "${IMAGE_TAG}" --file "${CI_PROJECT_DIR}/dockerfile/${DOCKERFILE_SOURCE}" "${CI_PROJECT_DIR}"
...
...
...
Writing manifest to image destination
Error: creating build container: preparing image configuration: resetting recorded compression for "containers-storage:[vfs@/var/lib/containers/storage+/run/containers/storage:vfs.imagestore=/var/lib/shared]@28f0e525958f9903faf875b184dc25c9e48a61f588248bd276ef42c9d313cc23": preparing updated manifest, layer "sha256:2fc5bf465c14844bb43b25290e452471d426f69b57f6af78dee82481b5f440f3": unsupported MIME type for compression: application/vnd.docker.image.rootfs.diff.tar.gzip


$ buildah version
Version: 1.33.2
Go Version: go1.21.4
Image Spec: 1.1.0-rc.5
Runtime Spec: 1.1.0
CNI Spec: 1.0.0
libcni Version:
image Version: 5.29.0
Git Commit:
Built: Mon Nov 27 09:54:37 2023
OS/Arch: linux/amd64
BuildPlatform: linux/amd64

@cforce can you share more from the command and the Dockerfile. i.e. what are the values that the variable had when the command ran?

IMAGE_TAG:registry.gitlab.com/XXXXX/gitlabagentandrunner/pipeline-agent:latest
BUILD_ARGS:--build-arg CR_NAME=registry.gitlab.com/XXXXX/gitlabagentandrunner --build-arg DEPENDENCY_PROXY=gitlab.com:443/XXXXX/dependency_proxy/containers/ --build-arg DATADOG_VERSION=0.100.0 --build-arg JDK_VERSION=17 --build-arg TERRAFORM_VERSION=1.4.5 --build-arg KUBECTL_VERSION=1.27.2 --build-arg GRADLE_VERSION=8.3 --build-arg GRAALVM_VERSION=22.3.0 --build-arg HELM_VERSION=3.11.3 --build-arg QEMU_VERSION=7.1.0 --build-arg NODE_VERSION=16.18.0 --build-arg K9S_VERSION=0.25.18 --build-arg PYTHON_VERSION=3.11 --build-arg NVM_VERSION=0.39.5 --build-arg NPM_VERSION=8.19.2 --build-arg GO_VERSION=1.20.5 --build-arg MYKIT_APP_ID=e0fdd027-229d-4d17-8025-bc44c8ad53db --build-arg MYKIT_APP_PAT=[MASKED] --build-arg GITHUB_USER=XXXX--build-arg GITHUB_TOKEN=[MASKED]
Building to: registry.gitlab.com/XXXXX/gitlabagentandrunner:registry.gitlab.com/XXXXXXXXXXXXXXXX/gitlabagentandrunner/pipeline-agent:latest
STEP 1/24: FROM registry.gitlab.com/XXXXXXXXXXXXXXXX/gitlabagentandrunner/pipeline-base:latest
Trying to pull registry.gitlab.com/XXXXXXXXXXXXXXXX/gitlabagentandrunner/pipeline-base:latest...
Getting image source signatures
Copying blob sha256:a5dc4b036afc9ef96c9acecc7747081224ae2f0acf682cbee222665f021e9353
Copying blob sha256:edaedc954fb53f42a7754a6e2d1b57f091bc9b11063bc445c2e325ea448f8f68
Copying blob sha256:ea27d1b791e26b441c4cfdc158d46282652b9ed84fdf9f8d76f144351ab94511
Copying blob sha256:408003c4ac5acae0428a85d9f2d125a0e5159d5f29d838711b83c6859b5fe61b
Copying blob sha256:2fc5bf465c14844bb43b25290e452471d426f69b57f6af78dee82481b5f440f3
Copying blob sha256:9b6ecae20088e0c1fdf0264e35be42024ab8b5a7d17b9ba2042a7c1309dbfe47
Copying blob sha256:17b9467a34b96984cd95fe66b04e229a4b441debf06e86df1cb042e5f3a47085
Copying blob sha256:d2393545fdac1b9c55ee9238ceb4a89175c52d397ef921baee3aaf1018863a50
Copying blob sha256:229ed7d8d1d7b67f0341de4bddeca405bd897bf70b61713407a1e6f95735ae75
Copying blob sha256:77dc45d114419219fe4beab1b1786cef71d691f11cf7106fd892d13effe4ad73
Copying blob sha256:a63415fa009e49aa6de6b5e21d13abdd0ab8682a49ea4eeab1f0a26e4ce72ee0
Copying blob sha256:0d6191ce580470a9037a2e2b5a4826ef954fc3f8477cd416efbd2d41e098c9f9
Copying blob sha256:a5c7d89cd438c22718f52f2d078f3bfd45fb4a2efea228e8f5d233615ada5c73
Copying blob sha256:5911815b74f4d718fcfe2b711b4be34c5f89c9d39f4a273354c0356808ed6703
Copying blob sha256:d35904ea913721c36ccaa36b971e82535b942cd7d1322d705b18cf1b05b803b7
Copying blob sha256:35873602f5e2537ee276970df571ad87e079838d8b152c8fd7c931fecd9b7c01
Copying blob sha256:7c5268be8e4a88ba11f64eff5342372c91cce768a8d60e04c0afbc19f5490f1f
Copying blob sha256:0d40cd4d88a7535b0c628e64c5df6210fba1c0990b900067252948701180fd6d
Copying blob sha256:ad4c6b57e3c99c3a9726e2f753dfb64534d6b7982367324cb6b7afa137a3b1e6
Copying blob sha256:8d632d370f9fdeb6163711329a9c0716db08ae65d75934e0ab4c83310711c9f7
Copying blob sha256:c9093652d30549885e709e72dd1492897697fef937b60ecfc8f8fc3731c9e2af
Copying blob sha256:4b940921314574da441505d1d76bbd808ee78b270a046ed3f4cf9685ba9e7840
Copying blob sha256:1b1368d42b619909d4a4e4222b73b1af0eab04de18010c43407c2f2dc05a9fe0
Copying blob sha256:77266c1b287398790e0e5945ed46237b0e0d544d44674407db01bd3bfc0bb8dc
Copying blob sha256:28b584ea87b6f21a4e69de7809fbb9e0ad08ed02b8f9d11b55254cb880848275
Copying blob sha256:ad34eb83c4c5461a084a66996a3be5ad20009221c37cc443e1e79e563984919b
Copying blob sha256:22fdf8e74d230869cdcecc0410e09cc0d9d3079e43bebeaa094aaec3994c3efd
Copying blob sha256:2cd637d2a59dc44ec98499960bf70e2100f97f3ae5613fe2a9438987c7ea8ff8
Copying blob sha256:2e7ceab54201eaa03440a753c1aa07d2fa908e9293b3d1bd03d02b608e79b115
Copying blob sha256:c2d4e38f9164aad88492c94e643ff7f954082bb209e84b99cd7c906fe73214d1
Copying blob sha256:89f9f7449fa4a170a9f7f59b229b861fb6207cd1429aa1e80fbbb08a224d2dbf
Copying blob sha256:b57439d76711e7059450ac449c6db654399135ae64289ab3eeed3941b0df3fe0
Copying blob sha256:260ed2352584a6f2383ecaa306a553a0ab61f56dee33c99096de0e06fcfab294
Copying blob sha256:c07b95f8a7af0c47a1255f68da7fb27fc7e11674a32568360f13e865b153a489
Copying blob sha256:8121724472c7068689d5c368316ea59f6398b8e8286e1f18e17a130cfda2a716
Copying blob sha256:ad24f9e4f8ab6c914c5f42e749ca9d688b8b50838b33db3f4fedf1f026f288b0
Copying blob sha256:bb1e98ff5b6db3cdc9de0a012af63db8b3b9ee240fea19d7714e7c7e4f1d6ef0
Copying blob sha256:71dc562d1cfb6eea1e9df8b467940909302f5a78cb5c018e96297c753602f41a
Copying blob sha256:f16128940df84dda5cf968df76bdd32e9db2b6eb399c139845b415661c469727
Copying blob sha256:9c76411c50a1e32a245e6297795dd1fd4b8071b63fd28ab7f9bce944d0b5d3f5
Copying blob sha256:5b393b96627b30555bd48f33a60fcb1ffa82b0fa186900f99662fdf28e75520f
Copying blob sha256:1d1b6f6f9bb2e2801eb6db0c054a3ecc333c135fd1ed17f1eadb20237b74b497
Copying blob sha256:6af5b26107a409c067d395e5341c2e23123f9ade262c4c7bb0ea842bc30673a6
Copying blob sha256:7c738cf3f5d5197012a0ec397906891dd116c7d6e6641da21dfdeaf3e3bda056
Copying blob sha256:0bd53b6a4a7c98fa7a4b6e6e768c25d5b172da1437b622eae75922fbff19692e
Copying blob sha256:e3c3b2336f3c6fc4403c6dd8276405903d676ba75b46b746cd52563beb6362bb
Copying blob sha256:8ee635379e3314b1b8f180e2a23c085fb94cd691b64c6392e262eaf5b2773c4c
copying config sha256:28f0e525958f9903faf875b184dc25c9e48a61f588248bd276ef42c9d313cc23
Writing manifest to image destination
Error: creating build container: preparing image configuration: resetting recorded compression for "containers-storage:[vfs@/var/lib/containers/storage+/run/containers/storage:vfs.imagestore=/var/lib/shared]@28f0e525958f9903faf875b184dc25c9e48a61f588248bd276ef42c9d313cc23": preparing updated manifest, layer "sha256:2fc5bf465c14844bb43b25290e452471d426f69b57f6af78dee82481b5f440f3": unsupported MIME type for compression: application/vnd.docker.image.rootfs.diff.tar.gzip
Cleaning up project directory and file based variables

podman and buildah reject images with mixed layer types, see #3668
Both shall detect base image media type and builds the new layer of the same type

A friendly reminder that this issue had no activity for 30 days.