You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use CST with OCI Images. Cause reasons, I MUST work without docker. Thus I use the --driver tar.
This does not seem to work with CST: Error: error creating driver: retrieving image: MANIFEST_UNKNOWN: OCI manifest found, but accept header does not support OCI manifests
./container-structure-test test --driver tar --image harbor.<fqdn>/library/oci:test --config config.yaml
====================================
====== Test file: config.yaml ======
====================================
2020/08/06 20:37:04 Unable to read"/root/.docker/config.json": open /root/.docker/config.json: no such file or directory
=== RUN: Metadata Test
--- FAIL
duration: 0s
Error: error creating driver: retrieving image: MANIFEST_UNKNOWN: OCI manifest found, but accept header does not support OCI manifests
=====================================
============== RESULTS ==============
=====================================
Passes: 0
Failures: 1
Duration: 0s
Total tests: 1
FAIL
FATA[0000] FAIL
I did some research, fetched the sourcecode, updated the dependency github.com/google/go-containerregistry to v.0.1.1 and make cross within a go1.9 container
so the windows binary fails. This seems to be caused by golang/go#34610
BUT my issue is fixed!
./container-structure-test-linux-amd64 test --driver tar --image harbor.<fqdn>/library/oci:test --config config.yaml
====================================
====== Test file: config.yaml ======
====================================
=== RUN: Metadata Test
--- FAIL
duration: 0s
Error: label built-date not found in image metadata
=====================================
============== RESULTS ==============
=====================================
Passes: 0
Failures: 1
Duration: 0s
Total tests: 1
FAIL
FATA[0005] FAIL
Since I don't use windows it is ok for me. I guess I need to bump a dependency which depends on /docker/[email protected]
But since the changed line in the dependencies is the only line I ever did in a go - programm I am unable to find the correct dependency.
I am willing to dig into this more, but need some fingerpoints to help me.
And if someone has an explanation, why the functionality is so different with different go versions I would be thankful.
--sluetze
The text was updated successfully, but these errors were encountered:
Hi,
I try to use CST with OCI Images. Cause reasons, I MUST work without docker. Thus I use the --driver tar.
This does not seem to work with CST:
Error: error creating driver: retrieving image: MANIFEST_UNKNOWN: OCI manifest found, but accept header does not support OCI manifests
I did some research, fetched the sourcecode, updated the dependency github.com/google/go-containerregistry to v.0.1.1 and
make cross
within a go1.9 containerThis results in:
The resulting binary does NOT fix the issue. So the error persists.
when I build the same code with go version go1.13.4 linux/amd64
so the windows binary fails. This seems to be caused by golang/go#34610
BUT my issue is fixed!
Since I don't use windows it is ok for me. I guess I need to bump a dependency which depends on /docker/[email protected]
But since the changed line in the dependencies is the only line I ever did in a go - programm I am unable to find the correct dependency.
I am willing to dig into this more, but need some fingerpoints to help me.
And if someone has an explanation, why the functionality is so different with different go versions I would be thankful.
--sluetze
The text was updated successfully, but these errors were encountered: