Invalid Manifest when pushing to private registry
nberrios opened this issue · comments
nberrios commented
DEBU[0000] Uploading manifests/latest
ERRO[0000] Failed to upload image to http://user:pw@registry/repo/image: Put request returned invalid response 400:
{"errors":[{"code":"MANIFEST_INVALID","message":"manifest invalid","detail":{}}]}
I receive this error when I attempt to smith upload my image.tar.gz to the registry. Taking a peek at index.json, this line sticks out:
{"schemaVersion":2,"manifests":[{"mediaType":"application/vnd.smith.spec+json",},{"mediaType":"application/vnd.oci.image.manifest.v1+json","com.oracle.smith.version":"1.1.2.12.23acefc","org.opencontainers.image.created":"2017-10-31T21:19:31Z","org.opencontainers.image.ref.name":"latest"},"platform":{"architecture":"amd64","os":"linux"}}]}
Any idea why that mediaType is pointing to v1?
Vish (Ishaya) Abrams commented
Are you uploading to a docker repository? If so, are you passing -d to the upload command? If you don't pass -d it attempts to upload it using an oci manifest.
nberrios commented
That fixed it. Thanks, Vish!