buildah: buildah image - podman pull: unsupported docker v2s2 media type: ""
I followed the buildah tutorial for building an image and pushed the image to my local Nexus v3.22 artifactory - like this:
buildah push --tls-verify=false silent1:8082/alpine-basic docker://silent1:8083/uwe/alpine-basic:latest
The image is visible in Nexus artifactory.
When I now go and remove the image locally and try to pull the image from Nexus
podman pull silent1:8082/uwe/alpine-basic:latest
I get following error:
podman pull silent1:8082/uwe/alpine-basic:latest Trying to pull silent1:8082/uwe/alpine-basic:latest… unsupported docker v2s2 media type: “” Error: error pulling image “silent1:8082/uwe/alpine-basic:latest”: unable to pull silent1:8082/uwe/alpine-basic:latest: unable to pull image: Error initializing image from source docker://silent1:8082/uwe/alpine-basic:latest: unsupported docker v2s2 media type: “”
Note: that I can pull images from docker hub using podman and through Nexus like this without a problem:
podman pull silent1:8082/httpd:2.4-alpine
Steps to reproduce the issue:
- follow Buildah tutorial 1
- mycontainer=$(buildah from alpine)
- buildah run $mycontainer – apk --no-cache add bash
- buildah config --created-by “uwe” $mycontainer
- buildah config --author “also uwe” $mycontainer
- buildah config --label name=“alpine-basic” $mycontainer
- buildah commit $mycontainer silent1:8082/alpine-basic
- buildah push --tls-verify=false silent1:8082/alpine-basic docker://silent1:8083/uwe/alpine-basic:latest
- podman pull silent1:8082/uwe/alpine-basic:latest
Describe the results you received: podman pull command result is indicating a unsupported docker v2s2 media type: “”
Describe the results you expected: podman would pull the existing image from local Nexus artifactory
Output of rpm -q buildah
or apt list buildah
:
buildah-1.14.3-1.fc31.x86_64
Output of buildah version
:
Version: 1.14.3
Go Version: go1.13.6
Image Spec: 1.0.1-dev
Runtime Spec: 1.0.1-dev
CNI Spec: 0.4.0
libcni Version:
image Version: 5.2.1
Git Commit:
Built: Thu Jan 1 01:00:00 1970
OS/Arch: linux/amd64
Output of podman version
if reporting a podman build
issue:
Version: 1.8.2
RemoteAPI Version: 1
Go Version: go1.13.6
OS/Arch: linux/amd64
Output of cat /etc/*release
:
Fedora release 31 (Thirty One)
Output of uname -a
:
Linux fedbox 5.5.11-200.fc31.x86_64 #1 SMP Mon Mar 23 17:32:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Output of cat /etc/containers/storage.conf
:
[storage]
driver = "overlay"
runroot = "/var/run/containers/storage"
graphroot = "/var/lib/containers/storage"
[storage.options]
additionalimagestores = [
]
size = ""
override_kernel_check = "true"
mountopt = "nodev,metacopy=on"
[storage.options.thinpool]
ostree_repo = ""
skip_mount_home = "false"
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (10 by maintainers)
Thank you Tom! It worked. I also tried to specify the same format parameter when pushing to Nexus and that worked as well. So that is even more convenient.
buildah push --tls-verify=false --format=docker silent1:8082/alpine-basic-new docker://silent1:8083/alpine-basic-new:latest
And also inspecting with skopeo now works - previously I got the same error message as during pull.
As I am beginning with podman and buildah, this has been of great help to me. Thanks again.
Uwe
Hi @jcansdale Thank you, it works after migrating to ghcr.io