Issue Description
Pulling an image, retagging it and trying to push results in the following error:
Error: creating an updated image manifest: preparing updated manifest, layer "sha256:56b812a48e20bdc4a1e18637e445987e10673a4ad229d9ff5c4f1486ae1e1f8c": unsupported MIME type for compression: application/vnd.docker.image.rootfs.diff.tar.gzip
Steps to reproduce the issue
Steps to reproduce the issue
- podman pull registry.local/project/image:1
- podman tag registry2.local/project/image:1
- podman push registry2.local/project/image:1
Describe the results you received
> podman push registry2.local/project/image:1
Getting image source signatures
Copying blob fd190c1a6475 skipped: already exists
Copying blob 724dc763905b skipped: already exists
Copying blob 863eee1bec4c skipped: already exists
Copying blob 158dc2bb708e skipped: already exists
Copying blob 600c98360e08 skipped: already exists
Copying blob d8fc108cfe22 skipped: already exists
Copying blob 5c91ba2acd18 skipped: already exists
Copying blob 32f7015b9422 skipped: already exists
Copying blob 80071f9ed774 skipped: already exists
Copying blob 5c16b2868d93 skipped: already exists
Copying blob 87a2d806c352 skipped: already exists
Copying blob 14163d527796 skipped: already exists
Copying blob 56b812a48e20 skipped: already exists
Copying blob 3e74f2c81bd3 skipped: already exists
Copying blob d8a374451c7b skipped: already exists
Copying blob 611a36c75723 skipped: already exists
Error: creating an updated image manifest: preparing updated manifest, layer "sha256:56b812a48e20bdc4a1e18637e445987e10673a4ad229d9ff5c4f1486ae1e1f8c": unsupported MIME type for compression: application/vnd.docker.image.rootfs.diff.tar.gzip
Describe the results you expected
It should push it successfully.
(Repeating the same commands with docker instead of podman works)
podman info output
host:
arch: amd64
buildahVersion: 1.30.0
cgroupControllers:
- cpu
- io
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.7-2.fc38.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.7, commit: '
cpuUtilization:
idlePercent: 97.64
systemPercent: 0.74
userPercent: 1.62
cpus: 2
databaseBackend: boltdb
distribution:
distribution: fedora
variant: workstation
version: "38"
eventLogger: journald
hostname: localhost.localdomain
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 6.3.8-200.fc38.x86_64
linkmode: dynamic
logDriver: journald
memFree: 312930304
memTotal: 8309153792
networkBackend: netavark
ociRuntime:
name: crun
package: crun-1.8.5-1.fc38.x86_64
path: /usr/bin/crun
version: |-
crun version 1.8.5
commit: b6f80f766c9a89eb7b1440c0a70ab287434b17ed
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
os: linux
remoteSocket:
path: /run/user/1000/podman/podman.sock
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.2.0-12.fc38.x86_64
version: |-
slirp4netns version 1.2.0
commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
libslirp: 4.7.0
SLIRP_CONFIG_VERSION_MAX: 4
libseccomp: 2.5.3
swapFree: 5106642944
swapTotal: 8308912128
uptime: 1803h 59m 48.00s (Approximately 75.12 days)
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.io
- quay.io
store:
configFile: /home/user/.config/containers/storage.conf
containerStore:
number: 2
paused: 0
running: 2
stopped: 0
graphDriverName: overlay
graphOptions: {}
graphRoot: /home/funke_t1/.local/share/containers/storage
graphRootAllocated: 52595523584
graphRootUsed: 26896195584
graphStatus:
Backing Filesystem: btrfs
Native Overlay Diff: "true"
Supports d_type: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 8
runRoot: /run/user/1000/containers
transientStore: false
volumePath: /home/user/.local/share/containers/storage/volumes
version:
APIVersion: 4.5.1
Built: 1685123928
BuiltTime: Fri May 26 19:58:48 2023
GitCommit: ""
GoVersion: go1.20.4
Os: linux
OsArch: linux/amd64
Version: 4.5.1
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
I have found this: podman-container-tools/buildah#3668
which suggests the image does not fulfill the OCI spec.
However, the spec states that it is interchangeable:
https://github.com/opencontainers/image-spec/blob/main/media-types.md#applicationvndociimagelayerv1targzip
> skopeo inspect --raw docker://registry.local/project/image:1 | jq
{
"schemaVersion": 2,
"config": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 4899,
"digest": "sha256:17a9ad7647bb61ef800f51f9109ae22fcc62754792c91ea574d12210c7fc4ab0"
},
"layers": [
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 6191,
"digest": "sha256:5c16b2868d93fb9e0d11be3de6610cdc53a212bdd6e0276d9c3215694fc46d12"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 29618,
"digest": "sha256:724dc763905be41fc3f79ca1ff20e58945acd54d7b784638d28ea6b06ae9a107"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 48986733,
"digest": "sha256:fd190c1a6475f413ee7f287018e2a345440b57a541779936e1083502d5a638b7"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 90867,
"digest": "sha256:14163d527796b84ced95debfe05e73a545e122313c451cbf9202f8d64137e9a8"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 59097,
"digest": "sha256:87a2d806c3528148d66209a515f032f0eb33a4482f6ff10faab1e746de204b9e"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 59947,
"digest": "sha256:80071f9ed774d54eeaa75def6f84f08d115fed3bcd06183e24119cb7bafa86cb"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 5692,
"digest": "sha256:863eee1bec4c3c0a6297f920b16525908c8a8f8b573985a00931cd7dc4051b9c"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 834641,
"digest": "sha256:158dc2bb708ea44dc9f1af0e2583fd5d0a5d79044a511c44743476ce6cba1ebe"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 876746,
"digest": "sha256:600c98360e080cdda6536309a366c1a7eed20a9ca00d23ee9ab7b4114225968f"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 44311,
"digest": "sha256:d8fc108cfe22c9e5b29298bd0556ae60e82e5e8e57ddac32df1703ae6f1028d3"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 19327,
"digest": "sha256:5c91ba2acd182029fc170a0c5d29da3613f1f9a916bf66808d595d9a241ea650"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 11082,
"digest": "sha256:32f7015b94225950efeb307db93fbe30f275cdf588ce64570ea7ef018603e41b"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 14794,
"digest": "sha256:3e74f2c81bd359addccc62f232959bdde9a8b4d42f63ee03ab110eca7dc509cd"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 173,
"digest": "sha256:611a36c7572365584236f2e617354769600eece2597fc48b0b5284501be5714b"
},
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 2322,
"digest": "sha256:56b812a48e20bdc4a1e18637e445987e10673a4ad229d9ff5c4f1486ae1e1f8c"
},
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 67331799,
"digest": "sha256:d8a374451c7b8b69350fd51842879984d02952e6bc5cb2b4ece536b169216c47"
}
]
}
Issue Description
Pulling an image, retagging it and trying to push results in the following error:
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Describe the results you expected
It should push it successfully.
(Repeating the same commands with
dockerinstead ofpodmanworks)podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
I have found this: podman-container-tools/buildah#3668
which suggests the image does not fulfill the OCI spec.
However, the spec states that it is interchangeable:
https://github.com/opencontainers/image-spec/blob/main/media-types.md#applicationvndociimagelayerv1targzip