Open johnmcollier opened 5 years ago
@johnmcollier Thanks for the report. Yesterday hub registry was upgraded to latest version that supports OCI images. In your case it looks like until yesterday buildah was pushing docker images and NOT OCI images probably because it detected that OCI support was not there. Yesterday after the upgrade it pushed an OCI image which docker does not support pulling as of now. Hence the following error:
Error response from daemon: mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not ''
However we are aware of hub UI not showing tags behind OCI images. We are working on getting this fixed and should release it (hopefully) sometime next week. LMK if you still have questions.
I am getting the same docker pull issue with the recent docker-ce and docker-registry.
# docker pull localhost:5000/kelvin/centos-bashecho
Using default tag: latest
Error response from daemon: mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not ''
# docker version
Client: Docker Engine - Community
Version: 19.03.2
API version: 1.40
Go version: go1.12.8
Git commit: 6a30dfc
Built: Thu Aug 29 05:28:55 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.2
API version: 1.40 (minimum version 1.12)
Go version: go1.12.8
Git commit: 6a30dfc
Built: Thu Aug 29 05:27:34 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
@kedmison As I mentioned earlier docker-ce
does not support pulling OCI images as of now. It only supports pulling docker images.
This affects any images built by podman
since it uses buildah under the hood.
Error response from daemon: mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not ''
That problem looks the same as https://github.com/moby/moby/issues/39727, which is fixed by https://github.com/moby/moby/pull/40070, and will be back ported to docker 19.03 for the next (19.03.5) patch release (backport is here: https://github.com/docker/engine/pull/405)
Just spent a lot of time trying to deal with this... would really be nice if the docker client could handle OCI images, or even if there were a workaround available.
@CameronNemo I feel you bro
just upgraded to Docker 19.03.5 on my Jetson Nano as pointed out by @thaJeztah and it seems to work.
Still happening as of today. Pushing a latest image with podman results in repo "not showing up" via the ui.
Putting the repo into the url bar actually shows a weird broken repo @ hub.docker.io.
@kallisti5 I had the same problem, but after some hours everything showed up in docker hub. I also did a pull from another machine in the meanwhile.. don't know if it may be related.
Hub UI does not show OCI images. We are aware of the issue and are working towards fixing this. Hoping to do this in a few weeks.
Having diverse image building tools is quite valuable. Thank you for the work you have done so far. Looking forward to the UI being updated. In the meantime, I am twiddling my thumbs while I wait for the gitlab.com shared runners to update their docker version.
@manishtomar any news?
Tried pushing the image built with buildah without --format=docker
. It appears in the docker hub interface
but looks weird, do not show the links, OS/ARCH and LAST PULL fields.
Also can confirm that both buildah pull
and docker pull
work with this image.
My guess is there's something to do with the manifest format.
We are clearing up our old issues and your ticket has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.
This is still an issue as of today. A workaround with podman would be to push with the --format=docker
option
We are clearing up our old issues and your ticket has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.
This issue has been fixed by https://github.com/docker/roadmap/issues/262.
Problem description
When I build and push OCI images using the
buildah
CLI to dockerhub, they get pushed fine (and can be pulled withbuildah pull ...
), but they won't show up in the Dockerhub UI, nor can they be pulled by thedocker
CLI or Kubernetes (using Docker). But Docker does appear to see that the image existsdocker pull:
buildah pull
This seems to be a recent change, as up until yesterday, using the exact same version of
buildah
, everything worked fine and OCI images could be pushed to DockerHub using buildan and they could be pulled using Kubernetes/Docker (and seen in the DockerHub UI).I should also note that other Docker registries work perfectly fine without issue (such as Artifactory, OKD's internal registry, etc). I can push images to them using
buildah
and Kubernetes can pull them perfectly fine.