Giter Site home page Giter Site logo

Comments (3)

daixiang0 avatar daixiang0 commented on May 14, 2024

I use docker client and same error:

$ docker manifest create --insecure -a 192.168.0.4:30003/ubuntu:18.04 192.168.0.4:30003/amd64/ubuntu:18.04 192.168.0.4:30003/arm64v8/ubuntu:18.04 192.168.0.4:30003/arm32v7/ubuntu:18.04
Created manifest list 192.168.0.4:30003/ubuntu:18.04
$ docker manifest push --insecure 192.168.0.4:30003/ubuntu:18.04
failed to mount blob amd64/ubuntu@sha256:b4d5da65030561ad56f9538bd3adf22d42bb92296988c22d312853dc079bfb4f to 192.168.0.4:30003/ubuntu:18.04: unknown: bad request: invalid repository name: ubuntu
$ docker manifest inspect --insecure 192.168.0.4:30003/amd64/ubuntu:18.04
{
	"schemaVersion": 2,
	"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
	"config": {
		"mediaType": "application/vnd.docker.container.image.v1+json",
		"size": 3313,
		"digest": "sha256:b4d5da65030561ad56f9538bd3adf22d42bb92296988c22d312853dc079bfb4f"
	},
	"layers": [
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 26713582,
			"digest": "sha256:6c5bd54c6d89dd69606bd062936eb16ffde24cf5d52cb66bb57989c1cf841609"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 860,
			"digest": "sha256:b19b8af32973956e8e43bb3df43cb9b611b14021752275f1dd7d12ee575bd036"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 192,
			"digest": "sha256:6f9c7b436cb34b766a15be052bc2bfe568c309f26176437a3a08241927fa0b2f"
		}
	]
}

I setup registry with harbor 2.1, is there something import i miss?

from manifest-tool.

tianon avatar tianon commented on May 14, 2024

I think what you're missing is that Harbor always includes a "project" name, and you are trying to push without that -- if you instead try something like 192.168.0.4:30003/library/ubuntu:18.04, it will probably work.

from manifest-tool.

daixiang0 avatar daixiang0 commented on May 14, 2024

It is the root cause, seem harbor has no plan to support this: goharbor/harbor#10648

from manifest-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.